]> git.ipfire.org Git - thirdparty/bacula.git/commitdiff
baculum: Fix support for UTF-8 currency symbols in paths - reported by Frédéric F.
authorMarcin Haba <marcin.haba@bacula.pl>
Thu, 26 Sep 2019 17:37:55 +0000 (19:37 +0200)
committerMarcin Haba <marcin.haba@bacula.pl>
Sat, 14 Dec 2019 14:55:59 +0000 (15:55 +0100)
gui/baculum/protected/Common/Class/Miscellaneous.php

index e3654396a9157861091877971568972d066f9819..a83cbeaa042c6b4d7bf19371277addb483849823 100644 (file)
@@ -235,7 +235,7 @@ class Miscellaneous extends TModule {
        }
 
        public function isValidPath($path) {
-               return (preg_match('/^[\p{L}\p{N}\p{Z}\[\]\-\'\/\\(){}:.#~_,+!$]{0,10000}$/u', $path) === 1);
+               return (preg_match('/^[\p{L}\p{N}\p{Z}\p{Sc}\[\]\-\'\/\\(){}:.#~_,+!$]{0,10000}$/u', $path) === 1);
        }
 
        public function isValidReplace($replace) {