allow @ in UNC path (#178)
This commit is contained in:
parent
81bd228c6b
commit
db4bfd306b
|
@ -518,7 +518,7 @@ function get_preg($argument, $regexp) {
|
||||||
$pregexpr = '/^[[:digit:]]+(\\.[[:digit:]]+)?$/';
|
$pregexpr = '/^[[:digit:]]+(\\.[[: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)|(\\.vbs)))*$/u';
|
$pregexpr = '/^(([\/\\\])*([[:alnum:]%\\.\\ \\$\\_-])+([\/\\\]([[:alnum:]%\\.\\ \\$\\_-])+)*((\\.bat)|(\\.cmd)|(\\.exe)|(\\.vbs)))*$/u';
|
||||||
|
|
Loading…
Reference in New Issue