From 35069883969c8b7d07568360f757a4400d28cc50 Mon Sep 17 00:00:00 2001 From: hickert Date: Fri, 26 Jan 2007 06:19:46 +0000 Subject: [PATCH] Allow basic regexes within blocklist numbers git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@5630 594d385d-05f5-0310-b6e9-bd551577e9d8 --- plugins/gofax/blocklists/class_blocklistManagement.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/gofax/blocklists/class_blocklistManagement.inc b/plugins/gofax/blocklists/class_blocklistManagement.inc index b03ebd763..d3e737780 100644 --- a/plugins/gofax/blocklists/class_blocklistManagement.inc +++ b/plugins/gofax/blocklists/class_blocklistManagement.inc @@ -193,7 +193,7 @@ class blocklist extends plugin /* Handle interactions: add */ if (isset($_POST['add_number']) && $_POST['number'] != ""){ - if (is_phone_nr($_POST['number'])){ + if (is_phone_nr($_POST['number']) || preg_match ("/^[\/0-9 ()\^\.\$+*-]+$/",$_POST['number'])){ $this->addNumber ($_POST['number']); } else { print_red (_("Please specify a valid phone number.")); -- 2.30.2