From b139c82dfcd739e7e9b78eeeeb987d6ff1d00c01 Mon Sep 17 00:00:00 2001 From: skodak Date: Fri, 16 Mar 2007 22:16:35 +0000 Subject: [PATCH] MDL-8883 fixed double backslashes problem in filter settings --- admin/filter.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/admin/filter.php b/admin/filter.php index cb24b3d1291..6fb383b4396 100644 --- a/admin/filter.php +++ b/admin/filter.php @@ -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; }