diff options
author | thomascube <thomas@roundcube.net> | 2008-11-03 07:44:33 +0000 |
---|---|---|
committer | thomascube <thomas@roundcube.net> | 2008-11-03 07:44:33 +0000 |
commit | 6e47c0be5c3b59cedbda8da8d708e69534964de2 (patch) | |
tree | db7d91d5574c6b0d0a1dc9edca487e2878120674 /program/include | |
parent | a9ab9fd5707c86242b09c610e235500102d4a0dd (diff) |
Handle magic_quotes on runtime and remove them from the requirements list (#1485285)
Diffstat (limited to 'program/include')
-rw-r--r-- | program/include/main.inc | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/program/include/main.inc b/program/include/main.inc index 8eb2c81f5..4ed25afaf 100644 --- a/program/include/main.inc +++ b/program/include/main.inc @@ -420,8 +420,11 @@ function get_input_value($fname, $source, $allow_html=FALSE, $charset=NULL) $value = $_COOKIE[$fname]; } + // strip single quotes if magic_quotes_sybase is enabled + if (ini_get('magic_quotes_sybase')) + $value = str_replace("''", "'", $value); // strip slashes if magic_quotes enabled - if ((bool)get_magic_quotes_gpc()) + else if (get_magic_quotes_gpc() || get_magic_quotes_runtime()) $value = stripslashes($value); // remove HTML tags if not allowed |