allow $ in UNC paths (for $user/$group)
This commit is contained in:
parent
8cf0ea5911
commit
00bc52f6e6
|
@ -470,7 +470,7 @@ function get_preg($argument, $regexp) {
|
||||||
$pregexpr = '/^[[:digit:]]*$/';
|
$pregexpr = '/^[[:digit:]]*$/';
|
||||||
break;
|
break;
|
||||||
case "UNC": // UNC Path, e.g. \\server\share\folder\...
|
case "UNC": // UNC Path, e.g. \\server\share\folder\...
|
||||||
$pregexpr = '/^((([\\\][\\\])|(%))([a-zA-Z0-9%\\.-])+)([\\\]([[:alnum:]%\\.\\ \\_-])+)+$/u';
|
$pregexpr = '/^((([\\\][\\\])|(%))([a-zA-Z0-9%\\.-])+)([\\\]([[:alnum:]%\\.\\$\\ \\_-])+)+$/u';
|
||||||
break;
|
break;
|
||||||
case "logonscript": // path to login-script. normal unix file
|
case "logonscript": // path to login-script. normal unix file
|
||||||
$pregexpr = '/^(([\/])*([[:alnum:]%\\.\\ \\_-])+([\/]([[:alnum:]%\\.\\ \\_-])+)*((\\.bat)|(\\.cmd)|(\\.exe)))*$/u';
|
$pregexpr = '/^(([\/])*([[:alnum:]%\\.\\ \\_-])+([\/]([[:alnum:]%\\.\\ \\_-])+)*((\\.bat)|(\\.cmd)|(\\.exe)))*$/u';
|
||||||
|
|
Loading…
Reference in New Issue