Commit e28564db authored by tbrehm's avatar tbrehm
Browse files

Implemented: FS#468 - Client name conversion in FTP user too restricted

parent 270e5c33
......@@ -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++){
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment