Browse Source

Remove change $_POST variables see BT# 13308

Chars "\" are deleted so, latex code don't work
Julio 6 years ago
parent
commit
1671d72550
1 changed files with 0 additions and 14 deletions
  1. 0 14
      main/exercise/admin.php

+ 0 - 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';
 }