From: lhm-gosa Date: Mon, 26 Oct 2009 08:11:32 +0000 (+0000) Subject: * Convert vendorId and productId to lower case. Udev-rules only match if vendorId... X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=3f718b58eef11c385646cf6eab02899ed68a17e0;p=gosa.git * Convert vendorId and productId to lower case. Udev-rules only match if vendorId and productId are lower case. git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.6-lhm@14625 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/trunk/gosa-plugins/goto/admin/devices/class_deviceGeneric.inc b/trunk/gosa-plugins/goto/admin/devices/class_deviceGeneric.inc index 00d63d0be..b8b91e2cc 100644 --- a/trunk/gosa-plugins/goto/admin/devices/class_deviceGeneric.inc +++ b/trunk/gosa-plugins/goto/admin/devices/class_deviceGeneric.inc @@ -105,7 +105,10 @@ class deviceGeneric extends plugin if(empty($this->vendor) || !$this->is_2byteHex($this->vendor)){ $message[]= msgPool::invalid(_("Vendor ID"),"","","0x1234"); } - + /* Convert vendorId and productId to lower case */ + $this->serial = strtolower($this->serial); + $this->vendor = strtolower($this->vendor); + /* Check if entry already exists */ if($this->cn != $this->orig_cn || $this->dn == "new"){ $ldap = $this->config->get_ldap_link();