From 9017f3f83ce0dac799e9c42a8e90aaced2e0627b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9?= Date: Sun, 15 Jul 2018 16:02:27 +0200 Subject: [PATCH] [Web] Fix for adding inactive Rspamd settings rule --- data/web/inc/functions.rsettings.inc.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/data/web/inc/functions.rsettings.inc.php b/data/web/inc/functions.rsettings.inc.php index 478e41e4..aac8631c 100644 --- a/data/web/inc/functions.rsettings.inc.php +++ b/data/web/inc/functions.rsettings.inc.php @@ -13,7 +13,7 @@ function rsettings($_action, $_data = null) { } $content = $_data['content']; $desc = $_data['desc']; - $active = $_data['active']; + $active = intval($_data['active']); if (empty($content)) { $_SESSION['return'] = array( 'type' => 'danger',