mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-07-30 11:38:50 -07:00
BUGFIX: Fix Web UI authentication with some browsers (e.g. epiphany)
This commit is contained in:
parent
f2fbfdf017
commit
671a997092
2 changed files with 2 additions and 1 deletions
|
@ -16,6 +16,7 @@
|
||||||
- BUGFIX: Only one log window can be opened at a time
|
- BUGFIX: Only one log window can be opened at a time
|
||||||
- BUGFIX: Optimized RSS module memory usage
|
- BUGFIX: Optimized RSS module memory usage
|
||||||
- BUGFIX: Consider HTTP downloads >1MB as invalid .torrent files and abort
|
- BUGFIX: Consider HTTP downloads >1MB as invalid .torrent files and abort
|
||||||
|
- BUGFIX: Fix Web UI authentication with some browsers
|
||||||
- COSMETIC: Improved style management
|
- COSMETIC: Improved style management
|
||||||
|
|
||||||
* Mon Jan 18 2010 - Christophe Dumez <chris@qbittorrent.org> - v2.1.0
|
* Mon Jan 18 2010 - Christophe Dumez <chris@qbittorrent.org> - v2.1.0
|
||||||
|
|
|
@ -193,7 +193,7 @@ bool HttpServer::isAuthorized(QByteArray auth, QString method) const {
|
||||||
if(auth.contains("qop=")) {
|
if(auth.contains("qop=")) {
|
||||||
QCryptographicHash md5_ha(QCryptographicHash::Md5);
|
QCryptographicHash md5_ha(QCryptographicHash::Md5);
|
||||||
// Get nc
|
// Get nc
|
||||||
QRegExp regex_nc(".*nc=(\\w+).*");
|
QRegExp regex_nc(".*nc=[\"]?(\\w+)[\"]?.*");
|
||||||
if(regex_nc.indexIn(auth) < 0) {
|
if(regex_nc.indexIn(auth) < 0) {
|
||||||
qDebug("AUTH-PROB: qop but missing nc");
|
qDebug("AUTH-PROB: qop but missing nc");
|
||||||
return false;
|
return false;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue