Browse Source

WebAPI: fix matching uncategorized torrents

Closes #11748.
adaptive-webui-19844
FranciscoPombal 5 years ago
parent
commit
7d24e1c063
  1. 4
      src/base/http/requestparser.cpp

4
src/base/http/requestparser.cpp

@ -201,7 +201,9 @@ bool RequestParser::parseRequestLine(const QString &line) @@ -201,7 +201,9 @@ bool RequestParser::parseRequestLine(const QString &line)
const QByteArray nameComponent = midView(param, 0, eqCharPos);
const QByteArray valueComponent = midView(param, (eqCharPos + 1));
const QString paramName = QString::fromUtf8(QByteArray::fromPercentEncoding(nameComponent).replace('+', ' '));
const QByteArray paramValue = QByteArray::fromPercentEncoding(valueComponent).replace('+', ' ');
const QByteArray paramValue = valueComponent.isNull()
? ""
: QByteArray::fromPercentEncoding(valueComponent).replace('+', ' ');
m_request.query[paramName] = paramValue;
}

Loading…
Cancel
Save