allow / at the end of homedir

This commit is contained in:
Roland Gruber 2006-09-21 16:27:52 +00:00
parent f1495a60a7
commit 1ccfbbde8d
1 changed files with 1 additions and 1 deletions

View File

@ -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:]]*$/';