Gitweb links:
...log
http://git.netsurf-browser.org/netsurf-test.git/shortlog/cef783d1432efc5594c2d9ad39e6749b1c4e95d9
...commit
http://git.netsurf-browser.org/netsurf-test.git/commit/cef783d1432efc5594c2d9ad39e6749b1c4e95d9
...tree
http://git.netsurf-browser.org/netsurf-test.git/tree/cef783d1432efc5594c2d9ad39e6749b1c4e95d9
The branch, master has been updated
via cef783d1432efc5594c2d9ad39e6749b1c4e95d9 (commit)
from 7f626ba0c9e9f091f9e677d4ed3a405dc54ba2f2 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
commitdiff
http://git.netsurf-browser.org/netsurf-test.git/commit/?id=cef783d1432efc5594c2d9ad39e6749b1c4e95d9
commit cef783d1432efc5594c2d9ad39e6749b1c4e95d9
Author: Daniel Silverstone <[email protected]>
Commit: Daniel Silverstone <[email protected]>
Of course cgi parameters are lists
diff --git a/cgi-bin/auth.cgi b/cgi-bin/auth.cgi
index 16cbf8f..83210d8 100755
--- a/cgi-bin/auth.cgi
+++ b/cgi-bin/auth.cgi
@@ -15,8 +15,8 @@ auth = os.getenv("HTTP_AUTHORIZATION")
query = os.getenv("QUERY_STRING") or "user=foo&pass=bar"
query = cgi.parse_qs(query)
-username = query.get("user", "foo")
-password = query.get("pass", query.get("password", "bar"))
+username = query.get("user", ["foo"])[0]
+password = query.get("pass", query.get("password", ["bar"]))[0]
gotuser = None
gotpass = None
-----------------------------------------------------------------------
Summary of changes:
cgi-bin/auth.cgi | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/cgi-bin/auth.cgi b/cgi-bin/auth.cgi
index 16cbf8f..83210d8 100755
--- a/cgi-bin/auth.cgi
+++ b/cgi-bin/auth.cgi
@@ -15,8 +15,8 @@ auth = os.getenv("HTTP_AUTHORIZATION")
query = os.getenv("QUERY_STRING") or "user=foo&pass=bar"
query = cgi.parse_qs(query)
-username = query.get("user", "foo")
-password = query.get("pass", query.get("password", "bar"))
+username = query.get("user", ["foo"])[0]
+password = query.get("pass", query.get("password", ["bar"]))[0]
gotuser = None
gotpass = None
--
NetSurf test cases
_______________________________________________
netsurf-commits mailing list
[email protected]
http://listmaster.pepperfish.net/cgi-bin/mailman/listinfo/netsurf-commits-netsurf-browser.org