From 57eb939ee47c7cf5b82aff63d6acda98bdd1e45c Mon Sep 17 00:00:00 2001 From: skodak Date: Tue, 24 Jun 2008 21:57:39 +0000 Subject: [PATCH] MDL-15304 fixed magic quotes issue merged from 19 --- mod/label/lib.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mod/label/lib.php b/mod/label/lib.php index 6e07786b6d..a846245d0b 100644 --- a/mod/label/lib.php +++ b/mod/label/lib.php @@ -8,7 +8,7 @@ define("LABEL_MAX_NAME_LENGTH", 50); function get_label_name($label) { $textlib = textlib_get_instance(); - $name = addslashes(strip_tags(format_string(stripslashes($label->content),true))); + $name = strip_tags(format_string($label->content,true)); if ($textlib->strlen($label->name) > LABEL_MAX_NAME_LENGTH) { $label->name = $textlib->substr($label->name, 0, LABEL_MAX_NAME_LENGTH)."..."; } -- 2.39.5