From f36b1996a252dea84e2a3a2d334698a3087f13fd Mon Sep 17 00:00:00 2001 From: moodler Date: Wed, 17 Dec 2003 03:32:30 +0000 Subject: [PATCH] Strip tags from activity names when moving --- course/lib.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/course/lib.php b/course/lib.php index ab8e0dd399..39c6920f46 100644 --- a/course/lib.php +++ b/course/lib.php @@ -524,7 +524,7 @@ function print_section_block($heading, $course, $section, $mods, $modnames, $mod if ($ismoving) { $strmovehere = get_string("movehere"); - $strmovefull = get_string("movefull", "", "'$USER->activitycopyname'"); + $strmovefull = strip_tags(get_string("movefull", "", "'$USER->activitycopyname'")); $stractivityclipboard = $USER->activitycopyname; $strcancel= get_string("cancel"); $modicon[] = " pixpath/t/move.gif\" height=\"11\" width=\"11\">"; @@ -613,7 +613,7 @@ function print_section($course, $section, $mods, $modnamesused, $absolute=false, } if ($ismoving) { $strmovehere = get_string("movehere"); - $strmovefull = get_string("movefull", "", "'$USER->activitycopyname'"); + $strmovefull = strip_tags(get_string("movefull", "", "'$USER->activitycopyname'")); } $modinfo = unserialize($course->modinfo); -- 2.39.5