From 671a997092c2f9a47168a50738abbfdaecf5baaa Mon Sep 17 00:00:00 2001 From: Christophe Dumez Date: Fri, 12 Mar 2010 20:28:47 +0000 Subject: [PATCH] BUGFIX: Fix Web UI authentication with some browsers (e.g. epiphany) --- Changelog | 1 + src/httpserver.cpp | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/Changelog b/Changelog index 9fb21786d..57c77e118 100644 --- a/Changelog +++ b/Changelog @@ -16,6 +16,7 @@ - BUGFIX: Only one log window can be opened at a time - BUGFIX: Optimized RSS module memory usage - BUGFIX: Consider HTTP downloads >1MB as invalid .torrent files and abort + - BUGFIX: Fix Web UI authentication with some browsers - COSMETIC: Improved style management * Mon Jan 18 2010 - Christophe Dumez - v2.1.0 diff --git a/src/httpserver.cpp b/src/httpserver.cpp index 991152134..5f86d1ba3 100644 --- a/src/httpserver.cpp +++ b/src/httpserver.cpp @@ -193,7 +193,7 @@ bool HttpServer::isAuthorized(QByteArray auth, QString method) const { if(auth.contains("qop=")) { QCryptographicHash md5_ha(QCryptographicHash::Md5); // Get nc - QRegExp regex_nc(".*nc=(\\w+).*"); + QRegExp regex_nc(".*nc=[\"]?(\\w+)[\"]?.*"); if(regex_nc.indexIn(auth) < 0) { qDebug("AUTH-PROB: qop but missing nc"); return false;