When we use TYPE_NOCLEAN and $this->magicquotes is on, be sure to strip slashes
authorRobert Sesek <rsesek@bluestatic.org>
Sun, 26 Mar 2006 07:55:09 +0000 (07:55 +0000)
committerRobert Sesek <rsesek@bluestatic.org>
Sun, 26 Mar 2006 07:55:09 +0000 (07:55 +0000)
kernel.php

index a6391a2e774c34af2c311728b273b8d380afcdff..ccd451031de18bfad690f74564ca209adfb2612f 100644 (file)
@@ -1110,7 +1110,14 @@ class ISSO
                }
                else if ($type == TYPE_NOCLEAN)
                {
-                       $value = $value;
+                       if ($this->magicquotes)
+                       {
+                               $value = str_replace(array('\"', "\'"), array('"', "'"), $value);
+                       }
+                       else
+                       {
+                               $value = $value;
+                       }
                }
                else
                {