diff --git a/app/devices/device_edit.php b/app/devices/device_edit.php index 25bc6af6a5..db967668c2 100644 --- a/app/devices/device_edit.php +++ b/app/devices/device_edit.php @@ -203,12 +203,12 @@ if (count($_POST) > 0 && strlen($_POST["persistformvar"]) == 0) { //validate the token - //$token = new token; - //if (!$token->validate($_SERVER['PHP_SELF'])) { - // message::add($text['message-invalid_token'],'negative'); - // header('Location: devices.php'); - // exit; - //} + $token = new token; + if (!$token->validate($_SERVER['PHP_SELF'])) { + message::add($text['message-invalid_token'],'negative'); + header('Location: devices.php'); + exit; + } //check for all required data $msg = ''; @@ -977,9 +977,9 @@ $selected = "selected=\"selected\" "; echo " \n"; echo " \n"; @@ -1356,7 +1356,7 @@ echo " \n"; echo "\n"; - echo "