diff options
Diffstat (limited to 'gerrit-httpd/src/main/resources/com/google/gerrit/httpd/auth/container/LoginRedirect.html')
-rw-r--r-- | gerrit-httpd/src/main/resources/com/google/gerrit/httpd/auth/container/LoginRedirect.html | 5 |
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 = ''; |