From 76f653f3ad0f049d1c11ed490dc6dfe1c866f6d6 Mon Sep 17 00:00:00 2001 From: hickert Date: Fri, 26 Jan 2007 06:20:29 +0000 Subject: [PATCH] Allow basic regex in fax blocklist git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.5@5631 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 3503448de..51fb7a0e2 100644 --- a/plugins/gofax/blocklists/class_blocklistManagement.inc +++ b/plugins/gofax/blocklists/class_blocklistManagement.inc @@ -198,7 +198,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