php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #37533 $_GET variable transform "+" in spaces
Submitted: 2006-05-20 03:42 UTC Modified: 2006-05-20 10:56 UTC
From: mails at mail dot pt Assigned:
Status: Not a bug Package: URL related
PHP Version: 4.4.2 OS: winXP
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: mails at mail dot pt
New email:
PHP Version: OS:

 

 [2006-05-20 03:42 UTC] mails at mail dot pt
Description:
------------
The $_GET[] variable has the values of the fields passed in the queryString, but it's normal if the value of one field has the symbole '+' the result of $_GET[] would have a 'space' replacing it ? 
It's not report in the manual that the $_GET do this kind of thing.

Reproduce code:
---------------
If my page.php have this code:

die($_GET["id"]);



Expected result:
----------------
and if i pass this url:

http://localhost/page.php?id=2983+09283

the result should be is "2983+09283"

Actual result:
--------------
the result should be is "2983 09283"

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2006-05-20 07:08 UTC] johannes@php.net
Thank you for taking the time to write to us, but this is not
a bug. Please double-check the documentation available at
http://www.php.net/manual/ and the instructions on how to report
a bug at http://bugs.php.net/how-to-report.php

.
 [2006-05-20 10:56 UTC] mails at mail dot pt
Thanks johannes for you quikly anwser, but i already tried to check the manual, could you tell me better where i can get more information about this specification ?
Thx a lot
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Fri Feb 14 22:01:29 2025 UTC