summaryrefslogtreecommitdiff
path: root/src/HttpRequestCommand.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/HttpRequestCommand.cc')
-rw-r--r--src/HttpRequestCommand.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/HttpRequestCommand.cc b/src/HttpRequestCommand.cc
index 852f6bb1..bc446505 100644
--- a/src/HttpRequestCommand.cc
+++ b/src/HttpRequestCommand.cc
@@ -159,9 +159,9 @@ bool HttpRequestCommand::executeInternal() {
} else {
if(getFileEntry()->getPath().empty()) {
getFileEntry()->setPath
- (util::applyDir
+ (util::createSafePath
(getDownloadContext()->getDir(),
- util::fixTaintedBasename(getRequest()->getFile())));
+ util::percentDecode(getRequest()->getFile())));
}
File ctrlfile(getFileEntry()->getPath()+
DefaultBtProgressInfoFile::getSuffix());