Gitweb links:

...log 
http://git.netsurf-browser.org/netsurf-test.git/shortlog/0311c126fc6c60dd6f6a131c2a8c862cbfe3f9ca
...commit 
http://git.netsurf-browser.org/netsurf-test.git/commit/0311c126fc6c60dd6f6a131c2a8c862cbfe3f9ca
...tree 
http://git.netsurf-browser.org/netsurf-test.git/tree/0311c126fc6c60dd6f6a131c2a8c862cbfe3f9ca

The branch, master has been updated
       via  0311c126fc6c60dd6f6a131c2a8c862cbfe3f9ca (commit)
      from  4020017eae152b639e47bd0243966fd308db34b9 (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=0311c126fc6c60dd6f6a131c2a8c862cbfe3f9ca
commit 0311c126fc6c60dd6f6a131c2a8c862cbfe3f9ca
Author: Daniel Silverstone <[email protected]>
Commit: Daniel Silverstone <[email protected]>

    Decode user/password as utf8

diff --git a/cgi-bin/auth.cgi b/cgi-bin/auth.cgi
index 6502a85..0f68b18 100755
--- a/cgi-bin/auth.cgi
+++ b/cgi-bin/auth.cgi
@@ -28,7 +28,7 @@ else:
     if not auth.startswith("Basic "):
         badauth("NOTBASIC")
     enc = auth[6:]
-    dec = b64decode(enc)
+    dec = b64decode(enc).decode('utf-8')
     if ":" not in dec:
         badauth("NOCOLON")
     bits = dec.rsplit(':', maxsplit=1)


-----------------------------------------------------------------------

Summary of changes:
 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 6502a85..0f68b18 100755
--- a/cgi-bin/auth.cgi
+++ b/cgi-bin/auth.cgi
@@ -28,7 +28,7 @@ else:
     if not auth.startswith("Basic "):
         badauth("NOTBASIC")
     enc = auth[6:]
-    dec = b64decode(enc)
+    dec = b64decode(enc).decode('utf-8')
     if ":" not in dec:
         badauth("NOCOLON")
     bits = dec.rsplit(':', maxsplit=1)


-- 
NetSurf test cases

_______________________________________________
netsurf-commits mailing list
[email protected]
http://listmaster.pepperfish.net/cgi-bin/mailman/listinfo/netsurf-commits-netsurf-browser.org

Reply via email to