Skip to content

Commit

Permalink
webui: quote restore command parameters
Browse files Browse the repository at this point in the history
Fixes #1020: Can not restore a client with spaces in its name
  • Loading branch information
fbergkemper committed Jul 19, 2021
1 parent d5d0383 commit 52827c8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion webui/vendor/Bareos/library/Bareos/BSock/BareosBSock.php
Expand Up @@ -964,7 +964,7 @@ public function restore($jobid=null, $client=null, $restoreclient=null, $restore
$debug = self::receive_message();
}

if(self::send('restore file=?b2000'.$rnd.' client='.$client.' restoreclient='.$restoreclient.' restorejob="'.$restorejob.'" where='.$where.' replace='.$replace.' yes')) {
if(self::send('restore file=?b2000'.$rnd.' client="'.$client.'" restoreclient="'.$restoreclient.'" restorejob="'.$restorejob.'" where="'.$where.'" replace="'.$replace.'" yes')) {
$result = self::receive_message();
}

Expand Down

0 comments on commit 52827c8

Please sign in to comment.