MDL-24058 replacing forbidden addslashes with something that is most probably completely useless

This commit is contained in:
Petr Skoda
2010-09-02 12:40:34 +00:00
parent 8866508f54
commit 9cc41dfd6d
+1 -1
View File
@@ -974,7 +974,7 @@ class qformat_xml extends qformat_default {
case MULTIANSWER:
$a_count=1;
foreach($question->options->questions as $question) {
$thispattern = addslashes("{#".$a_count."}"); // TODO: fix this addslashes
$thispattern = preg_quote("{#".$a_count."}"); //TODO: is this really necessary?
$thisreplace = $question->questiontext;
$expout=preg_replace("~$thispattern~", $thisreplace, $expout );
$a_count++;