Browse Source

Fix fill in blank when using Russian chars see #7718

Julio Montoya 9 years ago
parent
commit
d89a427d14
1 changed files with 2 additions and 3 deletions
  1. 2 3
      main/exercice/exercise.class.php

+ 2 - 3
main/exercice/exercise.class.php

@@ -2561,9 +2561,8 @@ class Exercise
                             }
                         } else {
 							// This value is the user input, not escaped while correct answer is escaped by fckeditor
-
-							$choice[$j] = api_htmlentities(trim($choice[$j]));
-
+							// Works with cyrillic alphabet and when using ">" chars
+                            $choice[$j] = htmlspecialchars(trim($choice[$j]));
                         }
 
                         $user_tags[] = $choice[$j];