changed regex for logon script
This commit is contained in:
parent
37f76431ee
commit
873f600ae8
|
@ -417,7 +417,7 @@ function get_preg($argument, $regexp) {
|
||||||
$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';
|
||||||
break;
|
break;
|
||||||
case "workstations": // comma separated list with windows-hosts
|
case "workstations": // comma separated list with windows-hosts
|
||||||
$pregexpr = '/^(([a-zA-Z0-9\\.\\_-])+(,[a-zA-Z0-9\\.\\_-])*)*$/';
|
$pregexpr = '/^(([a-zA-Z0-9\\.\\_-])+(,[a-zA-Z0-9\\.\\_-])*)*$/';
|
||||||
|
|
Loading…
Reference in New Issue