php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #36059 change in $_GET behavior
Submitted: 2006-01-17 20:52 UTC Modified: 2006-01-18 16:25 UTC
From: allen dot montz at ipayx dot com Assigned:
Status: Not a bug Package: *Web Server problem
PHP Version: 5.1.2 OS: Linux ES 4
Private report: No CVE-ID: None
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
MUST BE VALID
Solve the problem:
23 - 16 = ?
Subscribe to this entry?

 
 [2006-01-17 20:52 UTC] allen dot montz at ipayx dot com
Description:
------------
Until PHP 5.0.5 with magic_quotes = OFF we preserved '+' characters in $_GET variables. Since PHP 5.1.1 it appears that $_GET is automatically urlencoded and in order to recover '+' we need to urldecode and ereg_replace(' ', '+', ...). If this is new standard behavior please provide me with reference on when this change has taken place and the reason behind it.


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2006-01-17 21:03 UTC] sniper@php.net
No such change has been done. You're doing something wrong.
 [2006-01-18 15:48 UTC] allen dot montz at ipayx dot com
hmm ok. Maybe Apache changed.
 [2006-01-18 16:25 UTC] allen dot montz at ipayx dot com
One more question: are GET's automatically urlencoded or not? I'm not sure if our 'fix' is a good or bad idea, although it seems to work now.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat May 11 02:01:29 2024 UTC