From: hickert Date: Fri, 26 Jan 2007 06:19:46 +0000 (+0000) Subject: Allow basic regexes within blocklist numbers X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=35069883969c8b7d07568360f757a4400d28cc50;p=gosa.git Allow basic regexes within blocklist numbers git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@5630 594d385d-05f5-0310-b6e9-bd551577e9d8 --- 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."));