Handle magic_quotes on runtime and remove them from the requirements list (#1485285)
| | |
| | | - memory_limit (increase as suitable to support large attachments) |
| | | - file_uploads enabled (for attachment upload features) |
| | | - session.auto_start disabled |
| | | - magic_quotes_gpc disabled |
| | | - magic_quotes_sybase disabled |
| | | - zend.ze1_compatibility_mode disabled |
| | | * PHP compiled with OpenSSL to connect to IMAPS and to use the spell checker |
| | | * A MySQL or PostgreSQL database engine or the SQLite extension for PHP |
| | |
| | | <li>error_reporting E_ALL & ~E_NOTICE (or lower)</li> |
| | | <li>file_uploads on (for attachment upload features)</li> |
| | | <li>session.auto_start needs to be off</li> |
| | | <li>magic_quotes_gpc off</li> |
| | | </ul> |
| | | </li> |
| | | <li>A MySQL or PostgreSQL database engine or the SQLite extension for PHP</li> |
| | |
| | | $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 |