note 62793 added to function.parse-url
| From: | peynattlendotpl at osu1 dot php dot net | Date: | Thu, 09 Mar 2006 19:26:24 +0000 |
| Subject: | note 62793 added to function.parse-url | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-105159@lists.php.net to get a copy of this message | ||
a little bugfix to greg dot linton at gmail dot com function:
you have to change:
<?php
else
{
$ending = $var[ 0 ] . '=' . urlencode( $var[ 1 ] );
}
?>
with
<?php
else
{
if( $action == '+' )
{
$ending = $var[ 0 ] . '=' . urlencode( $var[ 1 ] );
}
}
?>
otherwise when using function like this
<?php
$url = ChangeQuery( '-', 'test' );
echo $url;
?>
you will see: index.php?t=e
best regards
----
Server IP: 195.136.184.34
Probable Submitter: 213.156.99.83
----
X-Spam-Status: No, hits=3.1 required=5.0 tests=DATE_MISSING,FROM_NO_LOWER
autolearn=no version=2.64
----
Manual Page -- http://www.php.net/manual/en/function.parse-url.php
Edit -- http://master.php.net/note/edit/62793
Del: integrated -- http://master.php.net/note/delete/62793/integrated
Del: useless -- http://master.php.net/note/delete/62793/useless
Del: bad code -- http://master.php.net/note/delete/62793/bad+code
Del: spam -- http://master.php.net/note/delete/62793/spam
Del: non-english -- http://master.php.net/note/delete/62793/non-english
Del: in docs -- http://master.php.net/note/delete/62793/in+docs
Del: other reasons-- http://master.php.net/note/delete/62793
Reject -- http://master.php.net/note/reject/62793
Search -- http://master.php.net/manage/user-notes.php