allow % in Samba profile/home path
This commit is contained in:
parent
202ea2be13
commit
92184d841e
|
@ -470,10 +470,10 @@ 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';
|
||||||
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