Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Dirk Dankhoff
ISPConfig 3
Commits
e28564db
Commit
e28564db
authored
Jun 16, 2010
by
tbrehm
Browse files
Implemented: FS#468 - Client name conversion in FTP user too restricted
parent
270e5c33
Changes
1
Hide whitespace changes
Inline
Side-by-side
interface/web/sites/tools.inc.php
View file @
e28564db
...
...
@@ -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
++
){
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment