[-] Installer: force magic_quote_runtime to 0

This commit is contained in:
Rémi Gaillard
2013-02-01 10:50:29 +01:00
parent c0a62be1c5
commit c48457cbe0

View File

@@ -67,6 +67,9 @@ require_once(_PS_INSTALL_PATH_.'classes/simplexml.php');
if (!@ini_get('date.timezone'))
@date_default_timezone_set('UTC');
// Some hosting still have magic_quotes_runtime configured
ini_set('magic_quotes_runtime', 0);
// Try to improve memory limit if it's under 32M
if (psinstall_get_memory_limit() < psinstall_get_octets('32M'))
ini_set('memory_limit', '32M');