Still need to catch the encoded place holder too.
authorJan Schneider <jan@horde.org>
Wed, 28 Jul 2010 16:17:22 +0000 (18:17 +0200)
committerJan Schneider <jan@horde.org>
Wed, 28 Jul 2010 16:17:41 +0000 (18:17 +0200)
horde/login.php

index 3554487..d077f94 100644 (file)
@@ -262,8 +262,8 @@ if (!empty($conf['auth']['alternate_login'])) {
     $anchor = _addAnchor($url_in, 'param', $vars, $url_anchor);
     $found = false;
     foreach ($url->parameters as $key => $value) {
-        if (strpos($value, '%u')) {
-            $url->parameters[$key] = str_replace('%u', rawurlencode($anchor), $value);
+        if (strpos($value, '%25u') || strpos($value, '%u')) {
+            $url->parameters[$key] = str_replace(array('%25u', '%u'), rawurlencode($anchor), $value);
             $found = true;
         }
     }