added file path to get_preg()

This commit is contained in:
Roland Gruber 2010-09-11 11:42:05 +00:00
parent e731076829
commit 43cbfb0ff3
1 changed files with 1 additions and 0 deletions

View File

@ -415,6 +415,7 @@ function get_preg($argument, $regexp) {
$pregexpr = '/^[^\\\<>=\\$\\?]*$/';
break;
case "homeDirectory": // Homapath, /path/......
case "filePath":
$pregexpr = '/^([\/]([[:alnum:]@\\$\\.\\ \\_-])+)+(\/)?$/u';
break;
case "digit": // Normal number