Skip to content

Commit

Permalink
Merge pull request #115 from resosafe/dev
Browse files Browse the repository at this point in the history
fix restore for filenames with single quotes
  • Loading branch information
uroni authored Nov 18, 2024
2 parents 67e4f67 + d1a6bd9 commit 50e4c48
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion urbackupserver/serverinterface/backups.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1914,7 +1914,7 @@ ACTION_IMPL(backups)
restore_flags |= restore_flag_ignore_permissions;
}

if(!create_clientdl_thread(clientname, t_clientid, t_clientid, path_info.full_path, path_info.full_metadata_path, CURRP["filter"],
if(!create_clientdl_thread(clientname, t_clientid, t_clientid, path_info.full_path, path_info.full_metadata_path, UnescapeHTML(UnescapeSQLString(CURRP["filter"])),
path_info.rel_path.empty(), path_info.rel_path, restore_id, status_id, log_id, std::string(),
std::vector< std::pair<std::string, std::string> >(), true, true, greplace(os_file_sep(), "/", path_info.rel_path), true,
restore_flags, ticket, tokens, path_info.backup_tokens, false))
Expand Down
Loading

0 comments on commit 50e4c48

Please sign in to comment.