Fix hotspot edition BT#14770

pull/2650/head
Julio Montoya 6 years ago
parent 006323e40d
commit 37e8d7f209
  1. 14
      main/exercise/admin.php

@ -64,6 +64,20 @@ if (empty($exerciseId)) {
$exerciseId = isset($_GET['exerciseId']) ? intval($_GET['exerciseId']) : '0';
}
/* stripslashes POST data */
if ($_SERVER['REQUEST_METHOD'] == 'POST') {
foreach ($_POST as $key => $val) {
if (is_string($val)) {
$_POST[$key] = stripslashes($val);
} elseif (is_array($val)) {
foreach ($val as $key2 => $val2) {
$_POST[$key][$key2] = stripslashes($val2);
}
}
$GLOBALS[$key] = $_POST[$key];
}
}
$newQuestion = isset($_GET['newQuestion']) ? $_GET['newQuestion'] : 0;
if (empty($modifyAnswers)) {

Loading…
Cancel
Save