allow $ in UNC paths (for $user/$group)

This commit is contained in:
Roland Gruber 2005-07-11 19:01:06 +00:00
parent 8cf0ea5911
commit 00bc52f6e6
1 changed files with 1 additions and 1 deletions

View File

@ -470,7 +470,7 @@ function get_preg($argument, $regexp) {
$pregexpr = '/^[[:digit:]]*$/';
break;
case "UNC": // UNC Path, e.g. \\server\share\folder\...
$pregexpr = '/^((([\\\][\\\])|(%))([a-zA-Z0-9%\\.-])+)([\\\]([[:alnum:]%\\.\\ \\_-])+)+$/u';
$pregexpr = '/^((([\\\][\\\])|(%))([a-zA-Z0-9%\\.-])+)([\\\]([[:alnum:]%\\.\\$\\ \\_-])+)+$/u';
break;
case "logonscript": // path to login-script. normal unix file
$pregexpr = '/^(([\/])*([[:alnum:]%\\.\\ \\_-])+([\/]([[:alnum:]%\\.\\ \\_-])+)*((\\.bat)|(\\.cmd)|(\\.exe)))*$/u';