diff options
-rw-r--r-- | h-source/Application/Include/hardware.php | 2 | ||||
-rw-r--r-- | h-source/Application/Include/myFunctions.php | 1 |
2 files changed, 2 insertions, 1 deletions
diff --git a/h-source/Application/Include/hardware.php b/h-source/Application/Include/hardware.php index 816e7f1..e25c47c 100644 --- a/h-source/Application/Include/hardware.php +++ b/h-source/Application/Include/hardware.php @@ -41,7 +41,7 @@ class Hardware "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\(\)\@\[\]\/]+$/", + "model" => "/^[a-zA-Z0-9\-\_\.\+\s\(\)\@\[\]\/\,]+$/", ); public static function translate($string) diff --git a/h-source/Application/Include/myFunctions.php b/h-source/Application/Include/myFunctions.php index 2f2a88a..bfcd8db 100644 --- a/h-source/Application/Include/myFunctions.php +++ b/h-source/Application/Include/myFunctions.php @@ -24,6 +24,7 @@ function encodeUrl($url) { $url = str_replace(' ','-',$url); $url = str_replace('.','-',$url); + $url = str_replace(',','-',$url); $url = str_replace('[','-',$url); $url = str_replace(']','-',$url); $url = str_replace('(','-',$url); |