Post request now validates scripts

This commit is contained in:
Jeroen De Meerleer 2017-05-10 10:54:26 +02:00
parent 7e9d9e3568
commit 606226b1c4
Signed by: JeroenED
GPG Key ID: 28CCCB8F62BFADD6
2 changed files with 0 additions and 10 deletions

View File

@ -65,11 +65,6 @@ elseif ($_SERVER["REQUEST_METHOD"] == "POST") {
$nextrunObj = new DateTime($_POST['nextrun']);
$nextrun = $nextrunObj->getTimestamp();
if(filter_var($url, FILTER_VALIDATE_URL) === FALSE) {
header("location:addjob.php?error=invalidurl");
exit;
}
if(!is_numeric($delay)) {
header("location:addjob.php?error=invaliddelay");
exit;

View File

@ -73,11 +73,6 @@ elseif ($_SERVER["REQUEST_METHOD"] == "POST") {
$nextrunObj = new DateTime($_POST['nextrun']);
$nextrun = $nextrunObj->getTimestamp();
if(filter_var($url, FILTER_VALIDATE_URL) === FALSE) {
header("location:editjob.php?jobID=" . $jobID . "&error=invalidurl");
exit;
}
if(!is_numeric($delay)) {
header("location:editjob.php?jobID=" . $jobID . "&error=invaliddelay");
exit;