root

Changeset 232

Show
Ignore:
Timestamp:
09/20/08 07:44:18 (2 years ago)
Author:
wbond
Message:

Fixed it so that slashes are automatically removed when calling fCookie::get() on a server with magic_quotes turned on

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • fCookie.php

    r214 r232 Hide Line Numbers
    6161    { 
    6262        if (isset($_COOKIE[$name])) { 
    63             return $_COOKIE[$name];  
     63            $value = $_COOKIE[$name]; 
     64            if (get_magic_quotes_gpc()) { 
     65                $value = stripslashes($value); 
     66            } 
     67            return $value; 
    6468        } 
    6569        return $default_value;