Skip to content

Commit

Permalink
Update webui/module/Restore/src/Restore/Model/RestoreModel.php
Browse files Browse the repository at this point in the history
  • Loading branch information
fbergkemper committed Sep 10, 2020
1 parent 2a3cb18 commit f114efd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion webui/module/Restore/src/Restore/Model/RestoreModel.php
Expand Up @@ -155,7 +155,7 @@ public function getFiles(&$bsock=null, $jobid=null, $pathid=null) {
*/
public function getFileVersions(&$bsock=null, $clientname=null, $pathid=null, $filename=null) {
if(isset($bsock)) {
$cmd = '.bvfs_versions jobid=0 client='.$clientname.' pathid='.$pathid.' fname="'.$filename.'"';
$cmd = '.bvfs_versions jobid=0 client='.$clientname.' pathid='.$pathid.' fname="'.addslashes($filename).'"';
$result = $bsock->send_command($cmd, 2);
$versions = \Zend\Json\Json::decode($result, \Zend\Json\Json::TYPE_ARRAY);
return $versions['result']['versions'];
Expand Down

0 comments on commit f114efd

Please sign in to comment.