]> git.mjollnir.org Git - moodle.git/commitdiff
Don't strip slashes from data send to htmlarea, after all it is not being stripped...
authorgustav_delius <gustav_delius>
Sat, 7 Oct 2006 17:20:35 +0000 (17:20 +0000)
committergustav_delius <gustav_delius>
Sat, 7 Oct 2006 17:20:35 +0000 (17:20 +0000)
lib/weblib.php

index ac8db392bb76eac30e75c8b687d1071a348d3cfa..01043854ade400633328c674d42ad1f0453a9983 100644 (file)
@@ -3593,7 +3593,7 @@ function print_textarea($usehtmleditor, $rows, $cols, $width, $height, $name, $v
     }
     $str .= '<textarea class="form=textarea" id="edit-'. $name .'" name="'. $name .'" rows="'. $rows .'" cols="'. $cols .'">';
     if ($usehtmleditor) {
-        $str .= htmlspecialchars(stripslashes_safe($value)); // needed for editing of cleaned text!
+        $str .= htmlspecialchars($value); // needed for editing of cleaned text!
     } else {
         $str .= s($value);
     }