]> git.sur5r.net Git - bacula/bacula/blobdiff - gui/baculum/protected/Common/Class/Miscellaneous.php
baculum: Fix path validator for UTF-8 characters
[bacula/bacula] / gui / baculum / protected / Common / Class / Miscellaneous.php
index eedac61094781d0094417769b964fab853b8ea5e..dbf56dedc325179516587824ce2b4b16a369d602 100644 (file)
@@ -202,7 +202,7 @@ class Miscellaneous extends TModule {
        }
 
        public function isValidPath($path) {
-               return (preg_match('/^[\p{L}\p{N}\p{Z}\[\]\(\)\-\+\/\\\:\.#~_,{}!]{0,1000}$/', $path) === 1);
+               return (preg_match('/^[\p{L}\p{N}\p{Z}\[\]\(\)\-\+\/\\\:\.#~_,{}!]{0,10000}$/u', $path) === 1);
        }
 
        public function isValidReplace($replace) {