SitePoint Sponsor

User Tag List

Results 1 to 3 of 3
  1. #1
    SitePoint Addict mmanders's Avatar
    Join Date
    Jul 2006
    Location
    Edinburgh, Scotland
    Posts
    358
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Odd urldecode behaviour...

    Hi,

    As far as I can tell, I have identical code bases on different systems. However, both systems have the same version of PHP. I can't find any obvious differences so I'm asking for help in identifying potential places to look.

    I have a URL that has been javascript escape. I make a GET request to this URL. The PHP that is called then dumps $_GET['mumble']. I have alert()ed the encoded URI and browsed to that on both systems. However, the dump on one sytem has slashes, quotes etc escaped. On the other system these special chars are not escape.

    Any thoughts on what would cause this behaviour?

  2. #2
    . shoooo... silver trophy logic_earth's Avatar
    Join Date
    Oct 2005
    Location
    CA
    Posts
    9,013
    Mentioned
    8 Post(s)
    Tagged
    0 Thread(s)
    magic_quotes is turned on in one of the installations.
    Logic without the fatal effects.
    All code snippets are licensed under WTFPL.


  3. #3
    SitePoint Addict mmanders's Avatar
    Join Date
    Jul 2006
    Location
    Edinburgh, Scotland
    Posts
    358
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Argh - of course! Of all the things I compared that hadn't event occurred to me! Thank you so much - I would have been md5sum-ing and grep-ing all day otherwise!


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •