From: Jan Schneider Date: Wed, 28 Jul 2010 16:10:00 +0000 (+0200) Subject: Work on the url parameters directly. X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=6fcfc1106f4e27d12acf0aec7be65488f8eca1ea;p=horde.git Work on the url parameters directly. --- diff --git a/horde/login.php b/horde/login.php index 128dafeb5..bbcb028bf 100644 --- a/horde/login.php +++ b/horde/login.php @@ -259,9 +259,11 @@ if (!empty($conf['auth']['alternate_login'])) { if (empty($url_in)) { $url_in = Horde::selfUrl(true, true, true); } - $anchor = _addAnchor($url_in, 'param', $vars, $url_anchor); - if (strpos($url, '%25u') || strpos($url, '%u')) { - $url = str_replace(array('%25u', '%u'), rawurlencode($anchor), $url); + $anchor = _addAnchor($url_in, 'param', $vars, $url_anchor); + foreach ($url->parameters as $key => $value) { + if (strpos($value, '%u')) { + $url->parameters[$key] = str_replace('%u', rawurlencode($anchor), $value); + } } else { $url->add('url', $anchor);