diff options
author | James Moger <james.moger@gitblit.com> | 2014-02-28 17:54:31 -0500 |
---|---|---|
committer | James Moger <james.moger@gitblit.com> | 2014-03-01 09:21:32 -0500 |
commit | 16aa5a06b3728f2a6c5b94bc36ce6cf6e266b286 (patch) | |
tree | 612d481d43679f9bcb714b73bcf46dd74366e718 | |
parent | 0fec6711a6ca0bb18f21923fde16000702c3fa9c (diff) | |
download | gitblit-16aa5a06b3728f2a6c5b94bc36ce6cf6e266b286.tar.gz gitblit-16aa5a06b3728f2a6c5b94bc36ce6cf6e266b286.zip |
Encode ampersand in url
-rw-r--r-- | src/main/java/com/gitblit/utils/StringUtils.java | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/main/java/com/gitblit/utils/StringUtils.java b/src/main/java/com/gitblit/utils/StringUtils.java index ed10eb6c..8a2af070 100644 --- a/src/main/java/com/gitblit/utils/StringUtils.java +++ b/src/main/java/com/gitblit/utils/StringUtils.java @@ -127,6 +127,8 @@ public class StringUtils { retStr.append("%2F");
} else if (inStr.charAt(i) == ' ') {
retStr.append("%20");
+ } else if (inStr.charAt(i) == '&') {
+ retStr.append("%26");
} else {
retStr.append(inStr.charAt(i));
}
|