Bugs item #637102, was opened at 2002-11-12 04:55
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=403611&aid=637102&group_id=31885
Category: Session
Group: 7.4pre1
Status: Open
Resolution: None
Priority: 5
Submitted By: Nobody/Anonymous (nobody)
Assigned to: Nobody/Anonymous (nobody)
Summary: sess->url($url) wrong if $myurl[0]=="?"
Initial Comment:
I'd give an example:
$myurl ="?someparam=XYZ";
$sessurl = $sess->url($myurl);
Result:
$sessurl => "?someparam=XYZ?MYSESSION_ID=xxxxxxxxxxx"
NOTE the *second* "?" ! This is because "?" is at
position 0 in $myurl. The problem is in sess->url()
function:
Line 193:
$url .= ( strpos($url, "?") != false ? "&" :
"?" ).
Must be:
$url .= ( strpos($url, "?") !== false ? "&" :
"?" ).
(for PHP 4.0.b3 and newer).
The best way is to use regex, though. Maybe, I don't
know. Just reporting a serious bug.
regards,
plamendp
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=403611&aid=637102&group_id=31885
|