#31692 [Opn->Bgs]: Plus sign stripped from string
| From: | derick@php.net | Date: | Tue, 25 Jan 2005 20:10:29 +0000 |
| Subject: | #31692 [Opn->Bgs]: Plus sign stripped from string | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-72804@lists.php.net to get a copy of this message | ||
ID: 31692
Updated by: derick@php.net
Reported By: robert dot chambers at roche dot com
-Status: Open
+Status: Bogus
Bug Type: Scripting Engine problem
Operating System: Win2000
PHP Version: 5.0.3
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.
+ is the urlencoded variant of a space, you need to encode it.
Previous Comments:
------------------------------------------------------------------------
[2005-01-25 20:25:51] robert dot chambers at roche dot com
Description:
------------
_SERVER["REQUEST_URI"]
/dev/dynamicpages/edit.php?T=WEB_APPS_SECURITY&R='AAAVEDAAXAAA+f4AAV'
_SERVER["QUERY_STRING"] T=WEB_APPS_SECURITY&R='AAAVEDAAXAAA+f4AAV'
BUT...
_REQUEST["T"] WEB_APPS_SECURITY
_REQUEST["R"] 'AAAVEDAAXAAA f4AAV'
AND
_GET["T"] WEB_APPS_SECURITY
_GET["R"] 'AAAVEDAAXAAA f4AAV'
What Happened to my "PLUS" sign ???
Reproduce code:
---------------
test.php?T='AAAVEDAAXAAA+f4AAV'
<?
$var = $_REQUEST["T"];
print($var);
?>
Expected result:
----------------
I expected my "PLUS" sign to be in my string.
Actual result:
--------------
'AAAVEDAAXAAA f4AAV'
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=31692&edit=1