Permalink
Browse files

MDL-8883 fixed double backslashes problem in filter settings; backpor…

…ted from MOODLE_18_STABLE
  • Loading branch information...
1 parent 78d68eb commit 721a2de984deee78d2711effb28c1cf624a11273 skodak committed Mar 16, 2007
Showing with 2 additions and 4 deletions.
  1. +2 −4 admin/filter.php
View
@@ -59,10 +59,10 @@
// run through submitted data
// reject if does not start with filter_
foreach ($config as $name => $value) {
- set_config( $name,$value );
+ set_config($name, stripslashes($value));
}
}
- redirect( "$CFG->wwwroot/$CFG->admin/filters.php", get_string('changessaved'), 1);
+ redirect("$CFG->wwwroot/$CFG->admin/filters.php");
exit;
}
@@ -94,7 +94,5 @@
<?php
print_simple_box_end();
- print_simple_box_end();
-
admin_externalpage_print_footer($adminroot);
?>

0 comments on commit 721a2de

Please sign in to comment.