fix to allow '=' in urls and a lot of space to tab conversation in skwashd's comments

This commit is contained in:
Ralf Becker 2003-09-21 14:04:13 +00:00
parent c30487281b
commit 90331f1b45

View File

@ -1151,7 +1151,7 @@
$i = 0; $i = 0;
while ($i < count($a)) while ($i < count($a))
{ {
$b = split('=', $a[$i]); $b = split('=', $a[$i],2);
$new_extravars[$b[0]] = $b[1]; $new_extravars[$b[0]] = $b[1];
$i++; $i++;
} }
@ -1184,8 +1184,7 @@
if (is_array($extravars)) if (is_array($extravars))
{ {
$new_extravars = ''; $new_extravars = '';
reset($extravars); foreach($extravars as $key => $value)
while(list($key,$value) = each($extravars))
{ {
if (!empty($new_extravars)) if (!empty($new_extravars))
{ {
@ -1198,6 +1197,7 @@
/* if no extravars then we return the cleaned up url/scriptname */ /* if no extravars then we return the cleaned up url/scriptname */
return $url; return $url;
} }
/** /**
* The remaining methods are abstract - as they are unique for each session handler * The remaining methods are abstract - as they are unique for each session handler
*/ */