MDL-37506 question code: incorrect preg_quote uses.
authorTim Hunt <T.J.Hunt@open.ac.uk>
Tue, 15 Jan 2013 15:56:34 +0000 (15:56 +0000)
committerTim Hunt <T.J.Hunt@open.ac.uk>
Fri, 18 Jan 2013 11:18:54 +0000 (11:18 +0000)
commit03cefcc91bcac74e5e11ebcb8859ad489b01bdda
tree310bdc5332c117d5d5b9e249149c7b63bca4666e
parenta5ec499521f449267961e738342013ee68804deb
MDL-37506 question code: incorrect preg_quote uses.

For preg_quote to work reliably, you must pass the delimiter you are
using for your regular expression. In many places we were failing to do
that.
25 files changed:
question/behaviour/adaptive/tests/walkthrough_test.php
question/behaviour/adaptivenopenalty/tests/walkthrough_test.php
question/behaviour/deferredcbm/tests/walkthrough_test.php
question/behaviour/deferredfeedback/tests/walkthrough_test.php
question/behaviour/immediatecbm/tests/walkthrough_test.php
question/behaviour/immediatefeedback/tests/walkthrough_test.php
question/behaviour/informationitem/tests/walkthrough_test.php
question/behaviour/interactive/tests/walkthrough_test.php
question/behaviour/interactivecountback/tests/walkthrough_test.php
question/behaviour/manualgraded/tests/walkthrough_test.php
question/behaviour/missing/tests/missingbehaviour_test.php
question/engine/questionattempt.php
question/engine/questionattemptstep.php
question/engine/tests/helpers.php
question/engine/tests/questionattempt_test.php
question/type/calculated/tests/walkthrough_test.php
question/type/calculatedmulti/tests/walkthrough_test.php
question/type/calculatedsimple/tests/walkthrough_test.php
question/type/match/tests/question_test.php
question/type/missingtype/tests/missingtype_test.php
question/type/multianswer/tests/walkthrough_test.php
question/type/multichoice/tests/question_test.php
question/type/numerical/tests/walkthrough_test.php
question/type/shortanswer/question.php
question/type/truefalse/tests/walkthrough_test.php