Permalink
Browse files

Merge branch 'MDL-34171_22' of git://github.com/timhunt/moodle into M…

…OODLE_22_STABLE
  • Loading branch information...
2 parents b1eae8a + b2fba4a commit 4fdabcce0e5b31669a6f2e9813658537ed92fb54 @danpoltawski danpoltawski committed Jul 10, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 question/format/gift/format.php
@@ -553,8 +553,8 @@ protected function add_blank_combined_feedback($question) {
protected function repchar($text, $notused = 0) {
// Escapes 'reserved' characters # = ~ {) :
// Removes new lines
- $reserved = array( '#', '=', '~', '{', '}', ':', "\n", "\r");
- $escaped = array('\#','\=','\~','\{','\}','\:', '\n', '' );
+ $reserved = array( '\\', '#', '=', '~', '{', '}', ':', "\n", "\r");
+ $escaped = array('\\\\', '\#','\=','\~','\{','\}','\:', '\n', '' );
$newtext = str_replace($reserved, $escaped, $text);
return $newtext;

0 comments on commit 4fdabcc

Please sign in to comment.