summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjim-p <jimp@pfsense.org>2016-08-22 15:48:08 -0400
committerjim-p <jimp@pfsense.org>2016-08-22 15:49:53 -0400
commitc2c68d6e233786259ab37ab4d56f35d7a3bcbd47 (patch)
treec26cf23f312f5c7780df5ac6b4be3008644581a2
parent29f441367184dd4b3fd9b0718ea81f016373bac9 (diff)
downloadFreeBSD-ports-c2c68d6e233786259ab37ab4d56f35d7a3bcbd47.zip
FreeBSD-ports-c2c68d6e233786259ab37ab4d56f35d7a3bcbd47.tar.gz
Fix handling of the "Cancel" button in the Cron package. Fixes #6735
-rw-r--r--sysutils/pfSense-pkg-Cron/Makefile3
-rw-r--r--sysutils/pfSense-pkg-Cron/files/usr/local/www/packages/cron/cron_edit.php5
2 files changed, 6 insertions, 2 deletions
diff --git a/sysutils/pfSense-pkg-Cron/Makefile b/sysutils/pfSense-pkg-Cron/Makefile
index 50d5b32e..1b220bf 100644
--- a/sysutils/pfSense-pkg-Cron/Makefile
+++ b/sysutils/pfSense-pkg-Cron/Makefile
@@ -1,8 +1,7 @@
# $FreeBSD$
PORTNAME= pfSense-pkg-Cron
-PORTVERSION= 0.3.6
-PORTREVISION= 2
+PORTVERSION= 0.3.7
CATEGORIES= sysutils
MASTER_SITES= # empty
DISTFILES= # empty
diff --git a/sysutils/pfSense-pkg-Cron/files/usr/local/www/packages/cron/cron_edit.php b/sysutils/pfSense-pkg-Cron/files/usr/local/www/packages/cron/cron_edit.php
index 0d9cdd32..e37830b 100644
--- a/sysutils/pfSense-pkg-Cron/files/usr/local/www/packages/cron/cron_edit.php
+++ b/sysutils/pfSense-pkg-Cron/files/usr/local/www/packages/cron/cron_edit.php
@@ -30,6 +30,11 @@
require_once("guiconfig.inc");
require_once("/usr/local/pkg/cron.inc");
+if (!empty($_POST["cancel"])) {
+ header("Location: cron.php");
+ exit;
+}
+
$a_cron = &$config['cron']['item'];
$id = $_GET['id'];
OpenPOWER on IntegriCloud