mirror of
https://github.com/d47081/qBittorrent.git
synced 2025-01-10 14:57:52 +00:00
parent
16111496ca
commit
47439a7efd
@ -251,12 +251,9 @@ bool RequestParser::parsePostMessage(const QByteArrayView data)
|
||||
// [URL Standard] 5.1 application/x-www-form-urlencoded parsing
|
||||
const QByteArray processedData = data.toByteArray().replace('+', ' ');
|
||||
|
||||
QListIterator<QStringPair> i(QUrlQuery(QString::fromUtf8(processedData)).queryItems(QUrl::FullyDecoded));
|
||||
while (i.hasNext())
|
||||
{
|
||||
const QStringPair pair = i.next();
|
||||
const QList<QStringPair> pairs = QUrlQuery(QString::fromUtf8(processedData)).queryItems(QUrl::FullyDecoded);
|
||||
for (const QStringPair &pair : pairs)
|
||||
m_request.posts[pair.first] = pair.second;
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user