From: cajus Date: Fri, 12 Oct 2007 08:32:52 +0000 (+0000) Subject: Ported serial check from 2.5 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=2f58bc26f29b62b8d956e6b47e88b3e8ebe84aa5;p=gosa.git Ported serial check from 2.5 git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@7530 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/plugins/admin/devices/class_deviceGeneric.inc b/plugins/admin/devices/class_deviceGeneric.inc index 70029985a..f583e3f9e 100644 --- a/plugins/admin/devices/class_deviceGeneric.inc +++ b/plugins/admin/devices/class_deviceGeneric.inc @@ -76,7 +76,7 @@ class deviceGeneric extends plugin } /* Skip serial check if vendor and product id are given */ - if(empty($this->dev_id) || preg_match("/[\|\*]/i",$this->dev_id)){ + if(preg_match("/^[0-9a-z]+$/i",$this->dev_id)){ $message[]=_("Please specify a valid iSerial."); } if(empty($this->serial) || !$this->is_2byteHex($this->serial)){