]> git.ipfire.org Git - thirdparty/bacula.git/commitdiff
baculum: Fix level property in show job endpoint if level is not provided in config
authorMarcin Haba <marcin.haba@bacula.pl>
Tue, 27 Feb 2024 14:40:08 +0000 (15:40 +0100)
committerMarcin Haba <marcin.haba@bacula.pl>
Tue, 27 Feb 2024 14:40:08 +0000 (15:40 +0100)
gui/baculum/protected/API/Modules/ConsoleOutputShowPage.php

index 9388bcafc721eaa116a2e1c708be47717320397a..4f1a1165d4b26859790b52785c698bf42814a86c 100644 (file)
@@ -45,7 +45,7 @@ abstract class ConsoleOutputShowPage extends ConsoleOutputPage {
                                $key = strtolower($match[1]);
                                $ret[$key] = $match[2];
                        }
-                       $mcount = preg_match_all('/(?<=\s)\w+=.+?(?=\s+\w+=.+|$)/i', $output[$i], $matches);
+                       $mcount = preg_match_all('/(?<=\s)\w+=.*?(?=\s+\w+=.+|$)/i', $output[$i], $matches);
                        if ($mcount === 0) {
                                continue;
                        }