allow / at the end of homedir
This commit is contained in:
parent
f1495a60a7
commit
1ccfbbde8d
|
@ -499,7 +499,7 @@ function get_preg($argument, $regexp) {
|
|||
$pregexpr = '/^[^\\\<>=\\$\\?]*$/';
|
||||
break;
|
||||
case "homeDirectory": // Homapath, /path/......
|
||||
$pregexpr = '/^([\/]([[:alnum:]\\$\\.\\ \\_-])+)+$/u';
|
||||
$pregexpr = '/^([\/]([[:alnum:]\\$\\.\\ \\_-])+)+(\/)?$/u';
|
||||
break;
|
||||
case "digit": // Normal number
|
||||
$pregexpr = '/^[[:digit:]]*$/';
|
||||
|
|
Loading…
Reference in New Issue