View Single Post
Old 01-10-2005, 01:09 AM   #7
Charter
Head Mole
 
Charter's Avatar
 
Join Date: May 2003
Posts: 2,539
Yes, I see what you say about parse_url with those type of links.

If you plan to use:
Code:
list($url['path'], $url['query']) = split("\?", str_replace('\'"','',$eval));
In place of:
Code:
$url = @parse_url(str_replace('\'"','',$eval));
Then in phpdigRewriteUrl add:
Code:
if (!eregi("[?]",$eval)) {
    $eval .= "?";
}
Right before:
Code:
list($url['path'], $url['query']) = split("\?", str_replace('\'"','',$eval));
Otherwise, you can receive "undefined offset" notices when error reporting is on high.

Note: it's not enough to comment out the "remove ending question mark" line as phpdigRewriteUrl is called in various places with various content.
__________________
Responses are offered on a voluntary if/as time is available basis, no guarantees. Double posting or bumping threads will not get your question answered any faster. No support via PM or email, responses not guaranteed. Thank you for your comprehension.
Charter is offline   Reply With Quote