|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2004-02-29 03:23 UTC] derick@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Thu Dec 04 13:00:01 2025 UTC |
Description: ------------ When register_globals=Off, people (who have no other choice) would like to use the function import_request_variables(). But this function CAN overwrite the superglobals variables like $_SERVER... and so users can define variables supposed to be "protected". Reproduce code: --------------- <? import_request_variables("g"); echo $_SERVER["REMOTE_ADDR"]; ?> File must be called with ?_SERVER[REMOTE_ADDR]=123 Expected result: ---------------- Expected to see my IP, not "123".