Skip to content

Commit e28564d

Browse files
committed
Implemented: FS#468 - Client name conversion in FTP user too restricted
1 parent 270e5c3 commit e28564d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

interface/web/sites/tools.inc.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -105,9 +105,9 @@ function getClientID($dataRecord) {
105105

106106
function convertClientName($name){
107107
/**
108-
* only allow 'a'..'z', '_', '0'..'9'
108+
* only allow 'a'..'z', '_', '-', '0'..'9'
109109
*/
110-
$allowed = 'abcdefghijklmnopqrstuvwxyz0123456789_';
110+
$allowed = 'abcdefghijklmnopqrstuvwxyz0123456789_-';
111111
$res = '';
112112
$name = strtolower(trim($name));
113113
for ($i=0; $i < strlen($name); $i++){

0 commit comments

Comments
 (0)