Encode URL.
authorJan <jan@horde.org>
Mon, 31 May 2010 16:08:03 +0000 (17:08 +0100)
committerJan Schneider <jan@horde.org>
Mon, 31 May 2010 16:22:33 +0000 (18:22 +0200)
horde/login.php

index 20d70e7..8cd82e1 100644 (file)
@@ -259,7 +259,7 @@ if (!empty($conf['auth']['alternate_login'])) {
     }
     $anchor = _addAnchor($url_in, 'param', $url_anchor);
     if (strpos($url, '%25u') || strpos($url, '%u')) {
-        $url = str_replace(array('%25u', '%u'), $anchor, $url);
+        $url = str_replace(array('%25u', '%u'), rawurlencode($anchor), $url);
     } else {
         $url = Horde_Util::addParameter($url, array('url' => $anchor), null, false);
     }