From c096a3a55386d8b801196729a169162bec7f41e1 Mon Sep 17 00:00:00 2001 From: Tatsuhiro Tsujikawa Date: Mon, 28 Aug 2006 12:40:41 +0000 Subject: 2006-08-28 Tatsuhiro Tsujikawa To make filename URL-decoded: * src/HttpResponseCommand.h: Updated doc. * src/HttpResponseCommand.cc (determinFilename): Made filename URL-decoded. * src/FtpInitiateConnectionCommand.cc (executeInternal): Made filename URL-decoded. * src/Util.h (urldecode): New function. * src/Util.cc (urldecode): New function. --- src/HttpResponseCommand.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/HttpResponseCommand.h') diff --git a/src/HttpResponseCommand.h b/src/HttpResponseCommand.h index 19a092c4..664fe026 100644 --- a/src/HttpResponseCommand.h +++ b/src/HttpResponseCommand.h @@ -33,6 +33,9 @@ private: bool handleOtherEncoding(const string& transferEncoding, const HttpHeader& headers); void createHttpDownloadCommand(const string& transferEncoding = ""); void retrieveCookie(const HttpHeader& headers); + /** + * Returned filename is URL-decoded. + */ string determinFilename(const HttpHeader& headers); HttpConnection* http; protected: -- cgit