diff --git a/interface/web/sites/tools.inc.php b/interface/web/sites/tools.inc.php index 16b1c5df808d4e751a518c53b263c237dddf7f0c..1e87ef9f9073d58b62aba204f6ff4dd2f90c2f9a 100644 --- a/interface/web/sites/tools.inc.php +++ b/interface/web/sites/tools.inc.php @@ -105,9 +105,9 @@ function getClientID($dataRecord) { function convertClientName($name){ /** - * only allow 'a'..'z', '_', '0'..'9' + * only allow 'a'..'z', '_', '-', '0'..'9' */ - $allowed = 'abcdefghijklmnopqrstuvwxyz0123456789_'; + $allowed = 'abcdefghijklmnopqrstuvwxyz0123456789_-'; $res = ''; $name = strtolower(trim($name)); for ($i=0; $i < strlen($name); $i++){