includes/functions.php
changeset 40 723bb7acf914
parent 38 ed06961e54dd
child 48 fc9762553a3c
equal deleted inserted replaced
39:c83ff194977a 40:723bb7acf914
  1152  */
  1152  */
  1153 function strip_magic_quotes_gpc()
  1153 function strip_magic_quotes_gpc()
  1154 {
  1154 {
  1155   if(enano_get_magic_quotes_gpc())
  1155   if(enano_get_magic_quotes_gpc())
  1156   {
  1156   {
  1157     $_POST   = stripslashes_recurse($_POST);
  1157     $_POST    = stripslashes_recurse($_POST);
  1158     $_GET    = stripslashes_recurse($_GET);
  1158     $_GET     = stripslashes_recurse($_GET);
  1159     $_COOKIE = stripslashes_recurse($_COOKIE);
  1159     $_COOKIE  = stripslashes_recurse($_COOKIE);
  1160   }
  1160     $_REQUEST = stripslashes_recurse($_REQUEST);
  1161   $_POST   = strip_nul_chars($_POST);
  1161   }
  1162   $_GET    = strip_nul_chars($_GET);
  1162   $_POST    = strip_nul_chars($_POST);
  1163   $_COOKIE = strip_nul_chars($_COOKIE);
  1163   $_GET     = strip_nul_chars($_GET);
       
  1164   $_COOKIE  = strip_nul_chars($_COOKIE);
       
  1165   $_REQUEST = strip_nul_chars($_REQUEST);
  1164 }
  1166 }
  1165 
  1167 
  1166 /**
  1168 /**
  1167  * A very basic single-character compression algorithm for binary strings/bitfields
  1169  * A very basic single-character compression algorithm for binary strings/bitfields
  1168  * @param string $bits the text to compress
  1170  * @param string $bits the text to compress