]> git.ipfire.org Git - thirdparty/bacula.git/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:06:08 +0000 (18:06 +0200)
gui/baculum/protected/Common/Class/Miscellaneous.php

index 37e8d315ea0f54124becf4250d9f9df440107c14..0c907c25f8592e1123283fccf894e3950fa0592d 100644 (file)
@@ -207,7 +207,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) {