]> git.sur5r.net Git - bacula/bacula/commitdiff
baculum: Fix path validator for UTF-8 characters
authorMarcin Haba <marcin.haba@bacula.pl>
Sat, 30 Jun 2018 16:02:18 +0000 (18:02 +0200)
committerMarcin Haba <marcin.haba@bacula.pl>
Sat, 30 Jun 2018 16:03:06 +0000 (18:03 +0200)
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) {