php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #19681 GET/POST Variables not parsing
Submitted: 2002-09-30 19:17 UTC Modified: 2002-09-30 19:30 UTC
From: hyena5 at hotmail dot com Assigned:
Status: Not a bug Package: Variables related
PHP Version: 4.2.3 OS: Linux RedHat 7.2
Private report: No CVE-ID: None
View Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
If you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: hyena5 at hotmail dot com
New email:
PHP Version: OS:

 

 [2002-09-30 19:17 UTC] hyena5 at hotmail dot com
Hi,

I just upgraded to 4.2.3 with apache 2.0.42 this evening and my scripts no longer function as before.

For example if I send a GET_Method URL to my server:
http://www.geomagnet.com/redirect.html?url=www.atomflash.com

the script:

<?

        header("Location:http://$url");
        exit;

?>

No longer functions unless I add this line before the header function.

$url=$_GET["url"];

Do I have to now define the variables (as in PERL)?
or is this a bug.

Thanks
Scott STolpmann

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2002-09-30 19:22 UTC] iliaa@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

Since PHP 4.2.0 register_globals are off by default, this is why $url is blank. If you turn them on in php.ini, you will be able to use $url.
 [2002-09-30 19:30 UTC] hholzgra@php.net
In PHP 4.2.0, the 'register_globals' setting default changed to
'off'. See http://www.php.net/release_4_2_0.php for more info.
We are sorry about the inconvenience, but this change was a necessary
part of our efforts to make PHP scripting more secure and portable.


 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Dec 26 10:01:29 2024 UTC