What magic_quotes affects?

Discussion in 'PHP' started by KevinJB, Jul 12, 2007.

  1. #1
    In my code I have the following:

    My question is, does magic_quotes affect $_FILES and / or $_SESSION? Also, are there any other variables that I've missed above that magic_quotes affects? Thanks in advance! Green rep to any (good) answers.
     
    KevinJB, Jul 12, 2007 IP
  2. chopsticks

    chopsticks Active Member

    Messages:
    565
    Likes Received:
    20
    Best Answers:
    0
    Trophy Points:
    60
    #2
    chopsticks, Jul 12, 2007 IP
    KevinJB likes this.
  3. Weizheng

    Weizheng Peon

    Messages:
    93
    Likes Received:
    6
    Best Answers:
    0
    Trophy Points:
    0
    #3
    According to the Php docs, slashes are only added to GET, POST and COOKIE.

    So I guess FILES and SESSION are not affected.
     
    Weizheng, Jul 13, 2007 IP
    KevinJB likes this.
  4. KevinJB

    KevinJB Peon

    Messages:
    170
    Likes Received:
    5
    Best Answers:
    0
    Trophy Points:
    0
    #4
    Thanks, I can't believe I missed that in the docs.
     
    KevinJB, Jul 13, 2007 IP
  5. chopsticks

    chopsticks Active Member

    Messages:
    565
    Likes Received:
    20
    Best Answers:
    0
    Trophy Points:
    60
    #5
    I saw your post in the user-contributed notes so I was still wondering why you asked when it was right above. Seemed weird at first. :)
     
    chopsticks, Jul 13, 2007 IP