]> git.sur5r.net Git - bacula/bacula/commitdiff
baculum: Fix lstat regex pattern
authorMarcin Haba <marcin.haba@bacula.pl>
Sun, 30 Jul 2017 12:35:01 +0000 (14:35 +0200)
committerMarcin Haba <marcin.haba@bacula.pl>
Sun, 30 Jul 2017 13:01:20 +0000 (15:01 +0200)
gui/baculum/protected/Common/Class/Miscellaneous.php

index fc3f8a9a811bc7f349b99b96503c31c31ccf2e1a..833f23352e89da414788e818b1ee068cf956c353 100644 (file)
@@ -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<pathid>\d+)\t(?P<filenameid>\d+)\t(?P<fileid>\d+)\t(?P<jobid>\d+)\t(?P<lstat>[a-zA-z0-9\+\/\ ]+)\t(?P<md5>.+)\t(?P<volname>.+)\t(?P<inchanger>\d+)$/', $list[$i], $match) == 1) {
+                       if(preg_match('/^(?P<pathid>\d+)\t(?P<filenameid>\d+)\t(?P<fileid>\d+)\t(?P<jobid>\d+)\t(?P<lstat>[a-zA-Z0-9\+\/\ ]+)\t(?P<md5>.+)\t(?P<volname>.+)\t(?P<inchanger>\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');
                        }
                }