From 5b4a6f2791529f8625cf1c589b53331dcbb19210 Mon Sep 17 00:00:00 2001 From: Eric Bollengier Date: Sat, 14 Jul 2007 15:45:54 +0000 Subject: [PATCH] ebl use where=/ by default git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/trunk@5181 91ce42f0-d328-0410-95d8-f526ca767f89 --- gui/bweb/cgi/bfileview.pl | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/gui/bweb/cgi/bfileview.pl b/gui/bweb/cgi/bfileview.pl index c05b3b7250..a6ec97bb13 100755 --- a/gui/bweb/cgi/bfileview.pl +++ b/gui/bweb/cgi/bfileview.pl @@ -50,7 +50,7 @@ my $bweb = new Bweb(info => $conf); $bweb->connect_db(); my $arg = $bweb->get_form('where', 'jobid', 'pathid', 'filenameid'); -my $where = $arg->{where}; +my $where = $arg->{where} || '/'; my $jobid = $arg->{jobid}; my $pathid = $arg->{pathid}; my $fnid = $arg->{filenameid}; @@ -63,7 +63,7 @@ my $md5_rep = md5_hex("$where:$jobid") ; my $base_url = '/bweb/fv' ; my $base_fich = $conf->{fv_write_path}; -if ($where and $jobid and $batch eq 'batch') { +if ($jobid and $batch eq 'batch') { my $root = fv_get_root_pathid($where); if ($root) { fv_compute_size($jobid, $root); @@ -76,7 +76,7 @@ print CGI::header('text/html'); $bweb->display_begin(); $bweb->display_job_zoom($jobid); -unless (($where or $pathid) and $jobid) { +unless ($jobid) { $bweb->error("Can't get where or jobid"); exit 0; } -- 2.39.5