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 = '/^[^\\\<>=\\$\\?]*$/';
|
$pregexpr = '/^[^\\\<>=\\$\\?]*$/';
|
||||||
break;
|
break;
|
||||||
case "homeDirectory": // Homapath, /path/......
|
case "homeDirectory": // Homapath, /path/......
|
||||||
$pregexpr = '/^([\/]([[:alnum:]\\$\\.\\ \\_-])+)+$/u';
|
$pregexpr = '/^([\/]([[:alnum:]\\$\\.\\ \\_-])+)+(\/)?$/u';
|
||||||
break;
|
break;
|
||||||
case "digit": // Normal number
|
case "digit": // Normal number
|
||||||
$pregexpr = '/^[[:digit:]]*$/';
|
$pregexpr = '/^[[:digit:]]*$/';
|
||||||
|
|
Loading…
Reference in New Issue