#24777 [Opn->Bgs]: $_GET values truncated at %3C in query string

From: Date: Wed, 23 Jul 2003 21:58:56 +0000
Subject: #24777 [Opn->Bgs]: $_GET values truncated at %3C in query string
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-44614@lists.php.net to get a copy of this message
 ID:               24777
 Updated by:       iliaa@php.net
 Reported By:      csnyder at chxo dot com
-Status:           Open
+Status:           Bogus
 Bug Type:         Strings related
 Operating System: Linux / FreeBSD
 PHP Version:      4.3.2
 New Comment:

Sorry, but your problem does not imply a bug in PHP itself.  For a
list of more appropriate places to ask for help using PHP, please
visit http://www.php.net/support.php as this bug system
is not the
appropriate forum for asking support questions. 

Thank you for your interest in PHP.

It works fine, your browser simply treating <email> as HTML tag and not
showing it. If you view the HTML source you'll see all of the text.


Previous Comments:
------------------------------------------------------------------------

[2003-07-23 15:59:33] csnyder at chxo dot com

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 this bug report at http://bugs.php.net/?id=24777&edit=1



Thread (2 messages)

« previous php.bugs (#44614) next »