From: Marcin Haba Date: Mon, 28 Jun 2021 19:24:15 +0000 (+0200) Subject: baculum: Fix problem with listing directories in restore wizard - reported by Tomasz... X-Git-Tag: Release-11.3.2~210 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=942f6d0fb95e99eb7aa84f726beb564e2af04ce2;p=thirdparty%2Fbacula.git baculum: Fix problem with listing directories in restore wizard - reported by Tomasz Świderski --- diff --git a/gui/baculum/protected/API/Class/BVFS.php b/gui/baculum/protected/API/Class/BVFS.php index f991b8acb..4290b3922 100644 --- a/gui/baculum/protected/API/Class/BVFS.php +++ b/gui/baculum/protected/API/Class/BVFS.php @@ -3,7 +3,7 @@ * Bacula(R) - The Network Backup Solution * Baculum - Bacula web interface * - * Copyright (C) 2013-2019 Kern Sibbald + * Copyright (C) 2013-2021 Kern Sibbald * * The main author of Baculum is Marcin Haba. * The original author of Bacula is Kern Sibbald, with contributions @@ -30,9 +30,9 @@ */ class BVFS extends APIModule { - const DIR_PATTERN = '/^(?P\d+)\t(?P\d+)\t(?P\d+)\t(?P\d+)\t(?P[a-zA-z0-9\+\/\ ]+)\t(?P(.*\/|\.{2}))$/'; + const DIR_PATTERN = '/^(?P\d+)\t(?P\d+)\t(?P\d+)\t(?P\d+)\t(?P[a-zA-z0-9\+\-\/\ ]+)\t(?P(.*\/|\.{2}))$/'; const FILE_PATTERN = '/^(?P\d+)\t(?P\d+)\t(?P\d+)\t(?P\d+)\t(?P[a-zA-z0-9\+\-\/\ ]+)\t(?P[^\/]+)$/'; - const VERSION_PATTERN = '/^(?P\d+)\t(?P\d+)\t(?P\d+)\t(?P\d+)\t(?P[a-zA-Z0-9\+\/\ ]+)\t(?P.+)\t(?P.+)\t(?P\d+)$/'; + const VERSION_PATTERN = '/^(?P\d+)\t(?P\d+)\t(?P\d+)\t(?P\d+)\t(?P[a-zA-Z0-9\+\-\/\ ]+)\t(?P.+)\t(?P.+)\t(?P\d+)$/'; public function parseFileDirList($list) { $elements = array();