From 606226b1c4ef46e52728502e89a83694c294b410 Mon Sep 17 00:00:00 2001 From: Jeroen De Meerleer Date: Wed, 10 May 2017 10:54:26 +0200 Subject: [PATCH] Post request now validates scripts --- addjob.php | 5 ----- editjob.php | 5 ----- 2 files changed, 10 deletions(-) diff --git a/addjob.php b/addjob.php index a2b06c6..5b373e5 100644 --- a/addjob.php +++ b/addjob.php @@ -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; diff --git a/editjob.php b/editjob.php index c346119..bfa5f45 100644 --- a/editjob.php +++ b/editjob.php @@ -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;