From 89dc009e9ac64791e20c9bbc7ee835a9227c2ef1 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 git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@12509 b9a71923-0436-4b27-9f14-aed3839534dd --- 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'));