#24777 [NEW]: $_GET values truncated at %3C in query string

From: Date: Wed, 23 Jul 2003 20:59:33 +0000
Subject: #24777 [NEW]: $_GET values truncated at %3C in query string
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-44610@lists.php.net to get a copy of this message
From:             csnyder at chxo dot com
Operating system: Linux / FreeBSD
PHP version:      4.3.2
PHP Bug Type:     Strings related
Bug description:  $_GET values truncated at %3C in query string

Description:
------------
Anything after %3C (>) in a query string value is being ignored by
parse_str().

For instance, given the request:
http://example.com/script.php?to=me+%3Cmail%40example.com%3E

$_GET['to'] is "me " instead of "me <mail@example.com>"


Reproduce code:
---------------
$query= "to=".urlencode("me <mail@example.com>");
parse_str($query);
print $to;

Expected result:
----------------
me <mail@example.com>

Actual result:
--------------
me 

-- 
Edit bug report at http://bugs.php.net/?id=24777&edit=1
-- 
Try a CVS snapshot (php4):  http://bugs.php.net/fix.php?id=24777&r=trysnapshot4
Try a CVS snapshot (php5):  http://bugs.php.net/fix.php?id=24777&r=trysnapshot5
Fixed in CVS:               http://bugs.php.net/fix.php?id=24777&r=fixedcvs
Fixed in release:           http://bugs.php.net/fix.php?id=24777&r=alreadyfixed
Need backtrace:             http://bugs.php.net/fix.php?id=24777&r=needtrace
Try newer version:          http://bugs.php.net/fix.php?id=24777&r=oldversion
Not developer issue:        http://bugs.php.net/fix.php?id=24777&r=support
Expected behavior:          http://bugs.php.net/fix.php?id=24777&r=notwrong
Not enough info:            http://bugs.php.net/fix.php?id=24777&r=notenoughinfo
Submitted twice:            http://bugs.php.net/fix.php?id=24777&r=submittedtwice
register_globals:           http://bugs.php.net/fix.php?id=24777&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=24777&r=php3
Daylight Savings:           http://bugs.php.net/fix.php?id=24777&r=dst
IIS Stability:              http://bugs.php.net/fix.php?id=24777&r=isapi
Install GNU Sed:            http://bugs.php.net/fix.php?id=24777&r=gnused



Thread (2 messages)

« previous php.bugs (#44610) next »