Jump to content

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

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.