// cleaning code (norm / perf)

This commit is contained in:
vChabot committed 2011-09-27 15:08:24 +00:00
1 parent c8fad9f083
commit eb0dcf212a
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();
}