Commit 1272df7f authored by Till Brehm's avatar Till Brehm
Browse files

- Allow underscore at the beginning of email user login names

- Add config to clear php handler in apps vhost.
parent 05646536
...@@ -11,6 +11,10 @@ ...@@ -11,6 +11,10 @@
ServerAdmin webmaster@localhost ServerAdmin webmaster@localhost
{apps_vhost_servername} {apps_vhost_servername}
<FilesMatch "\.ph(p3?|tml)$">
SetHandler None
</FilesMatch>
<IfModule mod_php5.c> <IfModule mod_php5.c>
DocumentRoot {apps_vhost_dir} DocumentRoot {apps_vhost_dir}
AddType application/x-httpd-php .php AddType application/x-httpd-php .php
......
...@@ -107,7 +107,7 @@ $form["tabs"]['mailuser'] = array ( ...@@ -107,7 +107,7 @@ $form["tabs"]['mailuser'] = array (
0 => array ( 'type' => 'UNIQUE', 0 => array ( 'type' => 'UNIQUE',
'errmsg'=> 'login_error_unique'), 'errmsg'=> 'login_error_unique'),
1 => array ( 'type' => 'REGEX', 1 => array ( 'type' => 'REGEX',
'regex' => '/^[a-z0-9][\w\.\-_\+@]{1,63}$/', 'regex' => '/^[_a-z0-9][\w\.\-_\+@]{1,63}$/',
'errmsg'=> 'login_error_regex'), 'errmsg'=> 'login_error_regex'),
), ),
'default' => '', 'default' => '',
......
Markdown is supported
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