// cleaning code (norm / perf)

This commit is contained in:
vChabot
2011-09-27 15:08:24 +00:00
parent c8fad9f083
commit eb0dcf212a
10 changed files with 52 additions and 53 deletions
+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();
}