From 2f58bc26f29b62b8d956e6b47e88b3e8ebe84aa5 Mon Sep 17 00:00:00 2001 From: cajus Date: Fri, 12 Oct 2007 08:32:52 +0000 Subject: [PATCH] Ported serial check from 2.5 git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@7530 594d385d-05f5-0310-b6e9-bd551577e9d8 --- plugins/admin/devices/class_deviceGeneric.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)){ -- 2.30.2