From: moodler Date: Wed, 17 Dec 2003 03:36:19 +0000 (+0000) Subject: Strip tags from activity name when moving X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=adcedde7d9384a2c451c7efdc2e89aea8ba1ee86;p=moodle.git Strip tags from activity name when moving --- diff --git a/course/format/topics.php b/course/format/topics.php index 7b56ccb661..31a6cc6781 100644 --- a/course/format/topics.php +++ b/course/format/topics.php @@ -100,7 +100,7 @@ /// If currently moving a file then show the current clipboard if (ismoving($course->id)) { - $stractivityclipboard = get_string("activityclipboard", "", addslashes($USER->activitycopyname)); + $stractivityclipboard = strip_tags(get_string("activityclipboard", "", addslashes($USER->activitycopyname))); $strcancel= get_string("cancel"); echo ""; echo "cellcontent\" class=\"topicoutlineclip\" width=\"100%\">"; diff --git a/course/format/weeks.php b/course/format/weeks.php index b6cd11a91f..cb8442d8a0 100644 --- a/course/format/weeks.php +++ b/course/format/weeks.php @@ -88,7 +88,7 @@ /// If currently moving a file then show the current clipboard if (ismoving($course->id)) { - $stractivityclipboard = get_string("activityclipboard", "", addslashes($USER->activitycopyname)); + $stractivityclipboard = strip_tags(get_string("activityclipboard", "", addslashes($USER->activitycopyname))); $strcancel= get_string("cancel"); echo ""; echo "cellcontent\" class=\"weeklyoutlineclip\" width=\"100%\">";