Gitweb links:

...log 
http://git.netsurf-browser.org/netsurf-test.git/shortlog/4020017eae152b639e47bd0243966fd308db34b9
...commit 
http://git.netsurf-browser.org/netsurf-test.git/commit/4020017eae152b639e47bd0243966fd308db34b9
...tree 
http://git.netsurf-browser.org/netsurf-test.git/tree/4020017eae152b639e47bd0243966fd308db34b9

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

    Better decode

diff --git a/cgi-bin/auth.cgi b/cgi-bin/auth.cgi
index c9faafc..6502a85 100755
--- a/cgi-bin/auth.cgi
+++ b/cgi-bin/auth.cgi
@@ -9,7 +9,7 @@ print('Content-Type: text/plain')
 print('')
 
 import os
-import base64
+from base64 import b64decode
 
 auth = os.getenv("HTTP_AUTHORIZATION")
 query = os.getenv("QUERY_STRING") or "user=foo&pass=bar"
@@ -28,7 +28,7 @@ else:
     if not auth.startswith("Basic "):
         badauth("NOTBASIC")
     enc = auth[6:]
-    dec = base64.decode(enc)
+    dec = b64decode(enc)
     if ":" not in dec:
         badauth("NOCOLON")
     bits = dec.rsplit(':', maxsplit=1)


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

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 c9faafc..6502a85 100755
--- a/cgi-bin/auth.cgi
+++ b/cgi-bin/auth.cgi
@@ -9,7 +9,7 @@ print('Content-Type: text/plain')
 print('')
 
 import os
-import base64
+from base64 import b64decode
 
 auth = os.getenv("HTTP_AUTHORIZATION")
 query = os.getenv("QUERY_STRING") or "user=foo&pass=bar"
@@ -28,7 +28,7 @@ else:
     if not auth.startswith("Basic "):
         badauth("NOTBASIC")
     enc = auth[6:]
-    dec = base64.decode(enc)
+    dec = b64decode(enc)
     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