Code

Allow basic regex in fax blocklist
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Fri, 26 Jan 2007 06:20:29 +0000 (06:20 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Fri, 26 Jan 2007 06:20:29 +0000 (06:20 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.5@5631 594d385d-05f5-0310-b6e9-bd551577e9d8

plugins/gofax/blocklists/class_blocklistManagement.inc

index 3503448de75b7321f700ab00f24ba0ecfd4e42be..51fb7a0e2dfb2c85ea8f4d27cc4b14534ad747e1 100644 (file)
@@ -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."));