Gitweb links:
...log
http://git.netsurf-browser.org/netsurf-test.git/shortlog/9aadb640576810c5a54b4f53b8b7a07db9f515f9
...commit
http://git.netsurf-browser.org/netsurf-test.git/commit/9aadb640576810c5a54b4f53b8b7a07db9f515f9
...tree
http://git.netsurf-browser.org/netsurf-test.git/tree/9aadb640576810c5a54b4f53b8b7a07db9f515f9
The branch, master has been updated
via 9aadb640576810c5a54b4f53b8b7a07db9f515f9 (commit)
from 0311c126fc6c60dd6f6a131c2a8c862cbfe3f9ca (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=9aadb640576810c5a54b4f53b8b7a07db9f515f9
commit 9aadb640576810c5a54b4f53b8b7a07db9f515f9
Author: Daniel Silverstone <[email protected]>
Commit: Daniel Silverstone <[email protected]>
More debug
diff --git a/cgi-bin/auth.cgi b/cgi-bin/auth.cgi
index 0f68b18..de08fe2 100755
--- a/cgi-bin/auth.cgi
+++ b/cgi-bin/auth.cgi
@@ -17,9 +17,11 @@ 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"))
+gotuser = None
+gotpass = None
def badauth(reason="NOAUTH"):
- print('result=BAD, reason={}'.format(reason))
+ print('result=BAD, username={}, password={}, reason={}'.format(gotuser,
gotpass, reason))
raise SystemExit
if not auth:
@@ -32,9 +34,11 @@ else:
if ":" not in dec:
badauth("NOCOLON")
bits = dec.rsplit(':', maxsplit=1)
- if bits[0] != username:
+ gotuser = bits[0]
+ gotpass = bits[1]
+ if gotuser != username:
badauth("BADUSER")
- if bits[1] != password:
+ if gotpass != password:
badauth("BADPASS")
-----------------------------------------------------------------------
Summary of changes:
cgi-bin/auth.cgi | 10 +++++++---
1 file changed, 7 insertions(+), 3 deletions(-)
diff --git a/cgi-bin/auth.cgi b/cgi-bin/auth.cgi
index 0f68b18..de08fe2 100755
--- a/cgi-bin/auth.cgi
+++ b/cgi-bin/auth.cgi
@@ -17,9 +17,11 @@ 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"))
+gotuser = None
+gotpass = None
def badauth(reason="NOAUTH"):
- print('result=BAD, reason={}'.format(reason))
+ print('result=BAD, username={}, password={}, reason={}'.format(gotuser,
gotpass, reason))
raise SystemExit
if not auth:
@@ -32,9 +34,11 @@ else:
if ":" not in dec:
badauth("NOCOLON")
bits = dec.rsplit(':', maxsplit=1)
- if bits[0] != username:
+ gotuser = bits[0]
+ gotpass = bits[1]
+ if gotuser != username:
badauth("BADUSER")
- if bits[1] != password:
+ if gotpass != password:
badauth("BADPASS")
--
NetSurf test cases
_______________________________________________
netsurf-commits mailing list
[email protected]
http://listmaster.pepperfish.net/cgi-bin/mailman/listinfo/netsurf-commits-netsurf-browser.org