From 9d57538ce8181a02f1652647aa940471fbee2cf3 Mon Sep 17 00:00:00 2001 From: Till Brehm <tbrehm@ispconfig.org> Date: Tue, 17 Jun 2014 04:26:03 -0400 Subject: [PATCH] Allow + and @ in FTP user names for compatibility with cpanel. --- interface/web/sites/form/ftp_user.tform.php | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/interface/web/sites/form/ftp_user.tform.php b/interface/web/sites/form/ftp_user.tform.php index 20e4565..2b97832 100644 --- a/interface/web/sites/form/ftp_user.tform.php +++ b/interface/web/sites/form/ftp_user.tform.php @@ -91,7 +91,7 @@ 'validators' => array ( 0 => array ( 'type' => 'UNIQUE', 'errmsg'=> 'username_error_unique'), 1 => array ( 'type' => 'REGEX', - 'regex' => '/^[\w\.\-]{0,64}$/', + 'regex' => '/^[\w\.\-@\+]{0,64}$/', 'errmsg'=> 'username_error_regex'), ), 'default' => '', -- Gitblit v1.9.1