Remove change $_POST variables see BT# 13308

Chars "\" are deleted so, latex code don't work
pull/2585/head
Julio 7 years ago
parent 33dc232d6f
commit 1671d72550
  1. 14
      main/exercise/admin.php

@ -60,20 +60,6 @@ if (!$is_allowedToEdit) {
api_not_allowed(true);
}
/* 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];
}
}
if (empty($exerciseId)) {
$exerciseId = isset($_GET['exerciseId']) ? intval($_GET['exerciseId']) : '0';
}

Loading…
Cancel
Save