From 3f718b58eef11c385646cf6eab02899ed68a17e0 Mon Sep 17 00:00:00 2001 From: lhm-gosa Date: Mon, 26 Oct 2009 08:11:32 +0000 Subject: [PATCH] * 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 --- .../gosa-plugins/goto/admin/devices/class_deviceGeneric.inc | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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(); -- 2.30.2