BUGFIX: Fix Web UI authentication with some browsers (e.g. epiphany)

This commit is contained in:
Christophe Dumez 2010-03-12 20:28:47 +00:00
parent f2fbfdf017
commit 671a997092
2 changed files with 2 additions and 1 deletions

View file

@ -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;