Code

Fixe id detection
authorcajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8>
Thu, 18 Oct 2007 14:37:48 +0000 (14:37 +0000)
committercajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8>
Thu, 18 Oct 2007 14:37:48 +0000 (14:37 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.5@7593 594d385d-05f5-0310-b6e9-bd551577e9d8

plugins/personal/environment/class_hotplugDialog.inc

index fa3ea53988faeae3ec17ec3fbc754bb0feb2ff74..8351742ba42f47ccae880e3c208c262f50b43b23 100644 (file)
@@ -126,7 +126,7 @@ class hotplugDialog extends plugin
       }
 
       /* Skip serial check if vendor and product id are given */
-      if(!preg_match("/^[a-z0-9]+$/i",$this->HOT_id)){
+      if(!preg_match("/^\s*$/i",$this->HOT_id)){
         $message[]=_("Please specify a valid iSerial.");
       }
       if(empty($this->HOT_vendor) || !$this->is_2byteHex($this->HOT_vendor)){