diff --git a/src/ioslaves/http/http.cpp b/src/ioslaves/http/http.cpp --- a/src/ioslaves/http/http.cpp +++ b/src/ioslaves/http/http.cpp @@ -4,7 +4,7 @@ Copyright (C) 2000-2002 Dawit Alemayehu Copyright (C) 2001,2002 Hamish Rodda Copyright (C) 2007 Nick Shaforostoff - Copyright (C) 2007 Daniel Nicoletti + Copyright (C) 2007-2018 Daniel Nicoletti Copyright (C) 2008,2009 Andreas Hartmetz This library is free software; you can redistribute it and/or @@ -1338,7 +1338,7 @@ changeProtocolToHttp(&newDest); m_request.method = DAV_COPY; - m_request.davData.desturl = newDest.url(); + m_request.davData.desturl = newDest.toString(QUrl::FullyEncoded); m_request.davData.overwrite = (flags & KIO::Overwrite); m_request.url.setQuery(QString()); m_request.cacheTag.policy = CC_Reload; @@ -1368,7 +1368,7 @@ changeProtocolToHttp(&newDest); m_request.method = DAV_MOVE; - m_request.davData.desturl = newDest.toString(); + m_request.davData.desturl = newDest.toString(QUrl::FullyEncoded); m_request.davData.overwrite = (flags & KIO::Overwrite); m_request.url.setQuery(QString()); m_request.cacheTag.policy = CC_Reload;