summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEdwin Kempin <edwin.kempin@gmail.com>2015-04-07 08:22:08 +0000
committerGerrit Code Review <noreply-gerritcodereview@google.com>2015-04-07 08:22:10 +0000
commitc41edaa2c133079ccdd02d045b0af1fcf897e3be (patch)
tree53a0ae5addee487aeeacbe07e82a4f6183794fc1
parentce3cf6c83a3664a1ba73002006e64c1a65ca4309 (diff)
parent2e7965f9a18539d8f311035ddd1f88831c402068 (diff)
Merge "Remove stripping # in login redirect" into stable-2.10
-rw-r--r--gerrit-httpd/src/main/resources/com/google/gerrit/httpd/auth/container/LoginRedirect.html5
1 files changed, 1 insertions, 4 deletions
diff --git a/gerrit-httpd/src/main/resources/com/google/gerrit/httpd/auth/container/LoginRedirect.html b/gerrit-httpd/src/main/resources/com/google/gerrit/httpd/auth/container/LoginRedirect.html
index d88af9a42f..0567468e8c 100644
--- a/gerrit-httpd/src/main/resources/com/google/gerrit/httpd/auth/container/LoginRedirect.html
+++ b/gerrit-httpd/src/main/resources/com/google/gerrit/httpd/auth/container/LoginRedirect.html
@@ -7,10 +7,7 @@
var p = href.indexOf('#');
var token;
if (p >= 0) {
- token = href.substring(p + 1);
- if (token.length != 0 && token.charAt(0) == '/') {
- token = token.substring(1);
- }
+ token = href.substring(p);
href = href.substring(0, p);
} else {
token = '';