mirror of
https://github.com/d47081/qBittorrent.git
synced 2025-01-27 23:14:31 +00:00
parent
412b51fb3c
commit
69d29af097
@ -143,8 +143,8 @@ void Tracker::respondToAnnounceRequest()
|
||||
const QByteArray nameComponent = midView(param, 0, sepPos);
|
||||
const QByteArray valueComponent = midView(param, (sepPos + 1));
|
||||
|
||||
const QString paramName = QString::fromUtf8(QByteArray::fromPercentEncoding(nameComponent));
|
||||
const QByteArray paramValue = QByteArray::fromPercentEncoding(valueComponent);
|
||||
const QString paramName = QString::fromUtf8(QByteArray::fromPercentEncoding(nameComponent).replace('+', ' '));
|
||||
const QByteArray paramValue = QByteArray::fromPercentEncoding(valueComponent).replace('+', ' ');
|
||||
queryParams[paramName] = paramValue;
|
||||
}
|
||||
|
||||
|
@ -415,6 +415,7 @@ Http::Response WebApplication::processRequest(const Http::Request &request, cons
|
||||
m_request = request;
|
||||
m_env = env;
|
||||
m_params.clear();
|
||||
|
||||
if (m_request.method == Http::METHOD_GET) {
|
||||
// Parse GET parameters
|
||||
using namespace Utils::ByteArray;
|
||||
@ -425,8 +426,8 @@ Http::Response WebApplication::processRequest(const Http::Request &request, cons
|
||||
const QByteArray nameComponent = midView(param, 0, sepPos);
|
||||
const QByteArray valueComponent = midView(param, (sepPos + 1));
|
||||
|
||||
const QString paramName = QString::fromUtf8(QByteArray::fromPercentEncoding(nameComponent));
|
||||
const QString paramValue = QString::fromUtf8(QByteArray::fromPercentEncoding(valueComponent));
|
||||
const QString paramName = QString::fromUtf8(QByteArray::fromPercentEncoding(nameComponent).replace('+', ' '));
|
||||
const QString paramValue = QString::fromUtf8(QByteArray::fromPercentEncoding(valueComponent).replace('+', ' '));
|
||||
m_params[paramName] = paramValue;
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user