From 8411d6df8dd9695a598e35d3725c45fb45f955f6 Mon Sep 17 00:00:00 2001 From: fSerny Date: Mon, 7 May 2012 10:08:35 +0000 Subject: [PATCH] [-] BO : Bug with slash on modules description - #PSCFV-2146 git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@15080 b9a71923-0436-4b27-9f14-aed3839534dd --- classes/Module.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/classes/Module.php b/classes/Module.php index a184f3b56..d5d43db62 100644 --- a/classes/Module.php +++ b/classes/Module.php @@ -969,8 +969,8 @@ abstract class ModuleCore $item->warning = ''; foreach ($xml_module as $k => $v) $item->$k = (string)$v; - $item->displayName = Translate::getModuleTranslation((string)$xml_module->name, Module::configXmlStringFormat($xml_module->displayName), (string)$xml_module->name); - $item->description = Translate::getModuleTranslation((string)$xml_module->name, Module::configXmlStringFormat($xml_module->description), (string)$xml_module->name); + $item->displayName = stripslashes(Translate::getModuleTranslation((string)$xml_module->name, Module::configXmlStringFormat($xml_module->displayName), (string)$xml_module->name)); + $item->description = stripslashes(Translate::getModuleTranslation((string)$xml_module->name, Module::configXmlStringFormat($xml_module->description), (string)$xml_module->name)); $item->author = Translate::getModuleTranslation((string)$xml_module->name, Module::configXmlStringFormat($xml_module->author), (string)$xml_module->name); if (isset($xml_module->confirmUninstall)) @@ -1017,7 +1017,7 @@ abstract class ModuleCore $item->version = $tmp_module->version; $item->tab = $tmp_module->tab; $item->displayName = $tmp_module->displayName; - $item->description = $tmp_module->description; + $item->description = stripslashes($tmp_module->description); $item->author = $tmp_module->author; $item->limited_countries = $tmp_module->limited_countries; $item->parent_class = get_parent_class($module); @@ -1092,7 +1092,7 @@ abstract class ModuleCore $item->version = strip_tags((string)$modaddons->version); $item->tab = strip_tags((string)$modaddons->tab); $item->displayName = strip_tags((string)$modaddons->displayName).' (Addons)'; - $item->description = strip_tags((string)$modaddons->description); + $item->description = stripslashes(strip_tags((string)$modaddons->description)); $item->author = strip_tags((string)$modaddons->author); $item->limited_countries = array(); $item->parent_class = '';