MDL-28345 make sure input parameters do not contain invalid utf-8 chars

This commit is contained in:
Petr Skoda
2011-07-15 15:00:49 +02:00
parent ecb8829273
commit 78fcdb5fdb
9 changed files with 92 additions and 14 deletions
+2 -2
View File
@@ -97,8 +97,8 @@ $table->align = array ('left', 'center', 'center');
$state_names = note_get_state_names();
// the first time list hack
if (empty($users)) {
foreach ($_POST as $k => $v) {
if (empty($users) and $post = data_submitted()) {
foreach ($post as $k => $v) {
if (preg_match('/^user(\d+)$/',$k,$m)) {
$users[] = $m[1];
}