From ba62152bfdad584c231dc3e941cd1974dd5d881c Mon Sep 17 00:00:00 2001 From: Antonio Gallo Date: Tue, 18 Oct 2011 17:38:01 +0000 Subject: more characters are now allowed for the kernel entry --- h-source/Application/Include/hardware.php | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'h-source/Application/Include/hardware.php') diff --git a/h-source/Application/Include/hardware.php b/h-source/Application/Include/hardware.php index 8248316..8caff1a 100644 --- a/h-source/Application/Include/hardware.php +++ b/h-source/Application/Include/hardware.php @@ -30,7 +30,14 @@ class Hardware { public static $translations = array( - "amd64" => 'x86-64/amd64', + "amd64" => 'x86-64/amd64', + ); + + public static $regExpressions = array( + "kernel" => "/^[a-zA-Z0-9\-\_\.\+\s\(\)\,]+$/", + "driver" => "/^[a-zA-Z0-9\-\_\.\+\s\/\,\:\;\(\)\[\]]+$/", + "vendorid_productid" => "/^[a-zA-Z0-9]{4}(\:)[a-zA-Z0-9]{4}$/", + "model" => "/^[a-zA-Z0-9\-\_\.\+\s\(\)\@\[\]\/]+$/", ); public static function translate($string) -- cgit v1.2.3