From 83483d847db9992fc26507a15c523805b7fb8a38 Mon Sep 17 00:00:00 2001 From: Daniel Silverstone Date: Sun, 4 Nov 2018 11:36:00 +0000 Subject: Realm list deref --- cgi-bin/auth.cgi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cgi-bin/auth.cgi b/cgi-bin/auth.cgi index 7f7aa71..63497d2 100755 --- a/cgi-bin/auth.cgi +++ b/cgi-bin/auth.cgi @@ -13,7 +13,7 @@ query = os.getenv("QUERY_STRING") or "user=foo&pass=bar&realm=NetSurf+Authentica query = cgi.parse_qs(query) username = query.get("user", ["foo"])[0] password = query.get("pass", query.get("password", ["bar"]))[0] -realm = query.get("realm", ["NetSurf Authentication Test"]) +realm = query.get("realm", ["NetSurf Authentication Test"])[0] gotuser = None gotpass = None -- cgit v1.2.3