Jochem Maas wrote:
This is a bit more concise. I doubt there'd be a noticable difference in speed though:function inputPostQueryUnBorker($s) { return preg_replace('#(\?|&(?:amp;)?)([^=]*)=#eU', "'\\1'.str_replace(array('%5B','%5D'), array('[',']'), '\\2').'='", $s); } so how bad is it
return preg_replace('#%5[bd](?=[^&]*=)#ei', 'urldecode("\0")', $s); Arpad -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php