Jump to content

$_GET safety


SirChick

Recommended Posts

Hey guys,

 

Have a question about $_GET. If a page doesn't use the function at all and a user edits the url to try to break the page so say they put:

text.php?3231

 

Then the site url changes it to:

 

text.php?%3221

 

Is that considered safe? Or should it be wiser to clear it so that it goes to "text.php" ? I am not sure if the % is meant to happen ?

Link to comment
https://forums.phpfreaks.com/topic/86927-_get-safety/
Share on other sites

If your script isn't expecting any get variables it won't care if there is any. This is another reason register_globals is now depricated.

 

Extra variables within the url should have no effect unless your server is misconfigured. I have been able to get access to source code on occasion by using index.php?~

Link to comment
https://forums.phpfreaks.com/topic/86927-_get-safety/#findComment-444408
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.