php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #31692 Plus sign stripped from string
Submitted: 2005-01-25 20:25 UTC Modified: 2005-01-25 21:10 UTC
Votes:1
Avg. Score:5.0 ± 0.0
Reproduced:1 of 1 (100.0%)
Same Version:1 (100.0%)
Same OS:1 (100.0%)
From: robert dot chambers at roche dot com Assigned:
Status: Not a bug Package: Scripting Engine problem
PHP Version: 5.0.3 OS: Win2000
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: robert dot chambers at roche dot com
New email:
PHP Version: OS:

 

 [2005-01-25 20:25 UTC] 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'

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2005-01-25 21:10 UTC] derick@php.net
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.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Wed Sep 11 13:01:28 2024 UTC