Skip to content
This repository has been archived by the owner on Mar 19, 2021. It is now read-only.

Commit

Permalink
Bugfix #548
Browse files Browse the repository at this point in the history
Adds missing quotes around the restore job name to allow names including whitespaces.

Fixes #548: Unable to use "Restore" function in bareos-webui (Error: Restore Job resource "Restore" does not exist.)
  • Loading branch information
fbergkemper committed Feb 26, 2016
1 parent 8cc637e commit e3641ae
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion vendor/Bareos/library/Bareos/BSock/BareosBSock.php
Expand Up @@ -920,7 +920,7 @@ public function restore($type=null, $jobid=null, $client=null, $restoreclient=nu
$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 e3641ae

Please sign in to comment.