Permalink
Browse files

Fixed bug #3481

  • Loading branch information...
1 parent f589733 commit aec645efcdd36c067571616f317e2c6ae98dc02c mindforge committed Jun 13, 2005
Showing with 4 additions and 4 deletions.
  1. +4 −4 mod/quiz/questiontypes/shortanswer/questiontype.php
@@ -212,10 +212,10 @@ function compare_responses(&$question, &$state, &$teststate) {
$replace = array('\\\\', '\+', '\(', '\)', '\[', '\]', '\-');
if (strpos(' '.$response1, '*')) {
- $answer0 = str_replace('\*','@@@@@@',$response1);
- $answer0 = str_replace('*','.*',$response1);
- $answer0 = str_replace($search, $replace, $response1);
- $answer0 = str_replace('@@@@@@', '\*',$response1);
+ $response1 = str_replace('\*','@@@@@@',$response1);
+ $response1 = str_replace('*','.*',$response1);
+ $response1 = str_replace($search, $replace, $response1);
+ $response1 = str_replace('@@@@@@', '\*',$response1);
if (ereg('^'.$response1.'$', $response0)) {
return true;

0 comments on commit aec645e

Please sign in to comment.