]> source.dussan.org Git - gitblit.git/commitdiff
Encode ampersand in url
authorJames Moger <james.moger@gitblit.com>
Fri, 28 Feb 2014 22:54:31 +0000 (17:54 -0500)
committerJames Moger <james.moger@gitblit.com>
Sat, 1 Mar 2014 14:21:32 +0000 (09:21 -0500)
src/main/java/com/gitblit/utils/StringUtils.java

index ed10eb6cd86246c0ac5bf61ed0f176da4f1cd7c6..8a2af070bd6c266144c8f0a9b42e2f83444a8902 100644 (file)
@@ -127,6 +127,8 @@ public class StringUtils {
                                retStr.append("%2F");\r
                        } else if (inStr.charAt(i) == ' ') {\r
                                retStr.append("%20");\r
+                       } else if (inStr.charAt(i) == '&') {\r
+                               retStr.append("%26");\r
                        } else {\r
                                retStr.append(inStr.charAt(i));\r
                        }\r