mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-11 11:35:54 +02:00
backup: Fix deleting backup files
Signed-off-by: Arne Fitzenreiter <arne.fitzenreiter@ipfire.org> Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
This commit is contained in:
@@ -137,8 +137,6 @@ elsif ( $cgiparams{'ACTION'} eq "delete" )
|
||||
my $file = &sanitise_file($cgiparams{'FILE'});
|
||||
exit(1) unless defined($file);
|
||||
|
||||
$file = &File::Basename::basename($file);
|
||||
|
||||
system("/usr/local/bin/backupctrl $file >/dev/null 2>&1");
|
||||
}
|
||||
|
||||
@@ -266,7 +264,7 @@ print <<END
|
||||
<td align='right' width='5'>
|
||||
<form method='post' action='$ENV{'SCRIPT_NAME'}'>
|
||||
<input type='hidden' name='ACTION' value='delete' />
|
||||
<input type='hidden' name='FILE' value='addons//backup/$_.ipf' />
|
||||
<input type='hidden' name='FILE' value='$_.ipf' />
|
||||
<input type='image' alt='$Lang::tr{'delete'}' title='$Lang::tr{'delete'}' src='/images/user-trash.png' />
|
||||
</form>
|
||||
</td>
|
||||
@@ -305,7 +303,7 @@ print <<END
|
||||
<td align='right' width='5'>
|
||||
<form method='post' action='$ENV{'SCRIPT_NAME'}'>
|
||||
<input type='hidden' name='ACTION' value='delete' />
|
||||
<input type='hidden' name='FILE' value='addons//backup/$_.ipf' />
|
||||
<input type='hidden' name='FILE' value='$_.ipf' />
|
||||
<input type='image' alt='$Lang::tr{'delete'}' title='$Lang::tr{'delete'}' src='/images/user-trash.png' />
|
||||
</form>
|
||||
</td>
|
||||
|
||||
Reference in New Issue
Block a user