Skip to content
Snippets Groups Projects
Commit e28564db authored by tbrehm's avatar tbrehm
Browse files

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

parent 270e5c33
No related branches found
No related tags found
2 merge requests!46Master,!21Master
...@@ -105,9 +105,9 @@ function getClientID($dataRecord) { ...@@ -105,9 +105,9 @@ function getClientID($dataRecord) {
function convertClientName($name){ function convertClientName($name){
/** /**
* only allow 'a'..'z', '_', '0'..'9' * only allow 'a'..'z', '_', '-', '0'..'9'
*/ */
$allowed = 'abcdefghijklmnopqrstuvwxyz0123456789_'; $allowed = 'abcdefghijklmnopqrstuvwxyz0123456789_-';
$res = ''; $res = '';
$name = strtolower(trim($name)); $name = strtolower(trim($name));
for ($i=0; $i < strlen($name); $i++){ for ($i=0; $i < strlen($name); $i++){
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment