From: Marcin Haba Date: Sun, 30 Jul 2017 12:35:01 +0000 (+0200) Subject: baculum: Fix lstat regex pattern X-Git-Tag: Release-9.0.3~18 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=766344fab3cfc5e9632e8300fc4e19d5333f529f;p=bacula%2Fbacula baculum: Fix lstat regex pattern --- diff --git a/gui/baculum/protected/Common/Class/Miscellaneous.php b/gui/baculum/protected/Common/Class/Miscellaneous.php index fc3f8a9a81..833f23352e 100644 --- a/gui/baculum/protected/Common/Class/Miscellaneous.php +++ b/gui/baculum/protected/Common/Class/Miscellaneous.php @@ -309,7 +309,7 @@ class Miscellaneous extends TModule { public function parseFileVersions($filename, $list) { $elements = array(); for($i = 0; $i < count($list); $i++) { - if(preg_match('/^(?P\d+)\t(?P\d+)\t(?P\d+)\t(?P\d+)\t(?P[a-zA-z0-9\+\/\ ]+)\t(?P.+)\t(?P.+)\t(?P\d+)$/', $list[$i], $match) == 1) { + if(preg_match('/^(?P\d+)\t(?P\d+)\t(?P\d+)\t(?P\d+)\t(?P[a-zA-Z0-9\+\/\ ]+)\t(?P.+)\t(?P.+)\t(?P\d+)$/', $list[$i], $match) == 1) { $elements[$match['fileid']] = array('name' => $filename, 'pathid' => $match['pathid'], 'filenameid' => $match['filenameid'], 'fileid' => $match['fileid'], 'jobid' => $match['jobid'], 'lstat' => $this->decode_bacula_lstat($match['lstat']), 'md5' => $match['md5'], 'volname' => $match['volname'], 'inchanger' => $match['inchanger'], 'type' => 'file'); } }