note 19223 added to function.urldecode

From: Date: Wed, 20 Feb 2002 07:42:21 +0000
Subject: note 19223 added to function.urldecode
Groups: php.notes 
Request: Send a blank email to php-notes+get-26831@lists.php.net to get a copy of this message
Note that one should NOT use urldecode for HTTP GET parameters, as these are already decoded on the fly. Like urldecode( urlencode( "/lost+found" ) ) yields "/lost+found" as expected, but urldecode( $HTTP_GET_VARS["dir"] ) yields "/lost found" (thus replacing the + with a space) for http://...../script.php?dir=%2Flost%2Bfound Arjan. -- http://www.php.net/manual/en/function.urldecode.php http://master.php.net/manage/user-notes.php?action=edit+19223 http://master.php.net/manage/user-notes.php?action=delete+19223 http://master.php.net/manage/user-notes.php?action=reject+19223

« previous php.notes (#26831) next »