From e1bcb1da1291056265d04bf52b9e80d478b13f51 Mon Sep 17 00:00:00 2001 From: rMalie Date: Wed, 18 Jan 2012 08:46:26 +0000 Subject: [PATCH] // Fix quotes in settings.inc file --- install-new/models/install.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/install-new/models/install.php b/install-new/models/install.php index 214e4a153..e2638bd21 100644 --- a/install-new/models/install.php +++ b/install-new/models/install.php @@ -115,7 +115,7 @@ class InstallModelInstall extends InstallAbstractModel $settings_content = " $value) - $settings_content .= "define('$constant', '$value');\n"; + $settings_content .= "define('$constant', '".str_replace('\'', '\\\'', $value)."');\n"; if (!@file_put_contents(_PS_ROOT_DIR_.'/'.self::SETTINGS_FILE, $settings_content)) { $this->setError($this->language->l('Cannot write settings file'));