From: hickert Date: Fri, 26 Jan 2007 06:20:29 +0000 (+0000) Subject: Allow basic regex in fax blocklist X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=76f653f3ad0f049d1c11ed490dc6dfe1c866f6d6;p=gosa.git Allow basic regex in fax blocklist git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.5@5631 594d385d-05f5-0310-b6e9-bd551577e9d8 --- 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."));