MDL-37506 question code: incorrect preg_quote uses.
[moodle.git] / question / engine / questionattempt.php
index 57041f0..c4d6061 100644 (file)
@@ -958,7 +958,7 @@ class question_attempt {
             $postdata = $_POST;
         }
 
-        $pattern = '/^' . preg_quote($this->get_field_prefix()) . '[^-:]/';
+        $pattern = '/^' . preg_quote($this->get_field_prefix(), '/') . '[^-:]/';
         $prefixlen = strlen($this->get_field_prefix());
 
         $submitteddata = array();