// cleaning code (norm / perf)

git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@8810 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
vChabot committed 2011-09-27 15:08:24 +00:00
1 parent 810f17c38e
commit 2045401f9e
10 files changed
+52 -53

No files matched your search

+1 -1
View File
@@ -177,7 +177,7 @@ class AdminAttributes extends AdminTab
}
// clean \n\r characters
foreach ($_POST as $key => $value)
if (preg_match('/^name_/Ui', $key))
if (stripos($key, 'name_') !== false)
$_POST[$key] = str_replace ('\n', '', str_replace('\r', '', $value));
parent::postProcess();
}