Hopefully the final, working version.
authorJan Schneider <jan@horde.org>
Wed, 28 Jul 2010 16:24:57 +0000 (18:24 +0200)
committerJan Schneider <jan@horde.org>
Wed, 28 Jul 2010 16:42:15 +0000 (18:42 +0200)
horde/login.php

index d077f94..4fc95db 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, '%25u') || strpos($value, '%u')) {
-            $url->parameters[$key] = str_replace(array('%25u', '%u'), rawurlencode($anchor), $value);
+        if (strpos($value, '%u') !== false) {
+            $url->parameters[$key] = str_replace('%u', $anchor, $value);
             $found = true;
         }
     }