prewikka/master: Fix exception with CGI authentication

[email protected] Tue, 3 Aug 2010 09:40:31 +0200 (CEST)
Newsgroups gmane.comp.security.ids.prelude.cvs
Message-ID <[email protected]>
commit f7f8b2f5e57bd9d5d543b6e8a9dd8f75acac3cb3
Author: Yoann Vandoorselaere <[email protected]>
Date:   Tue Aug 3 09:39:06 2010 +0200

    Fix exception with CGI authentication
    
    The toUnicode was not called correctly. Thanks Maksym Tiurin
    <[email protected]> for reporting this problem. Closes #381.


========================================

 prewikka/modules/auth/cgi/cgi.py |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

========================================

diff --git a/prewikka/modules/auth/cgi/cgi.py b/prewikka/modules/auth/cgi/cgi.py
index a1e12bb..78335ff 100644
--- a/prewikka/modules/auth/cgi/cgi.py
+++ b/prewikka/modules/auth/cgi/cgi.py
@@ -18,7 +18,7 @@
 # the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.
 
 import os
-from prewikka import Auth, User, Database
+from prewikka import Auth, User, Database, utils
 
 
 class CGIAuth(Auth.Auth):
@@ -40,7 +40,7 @@ class CGIAuth(Auth.Auth):
         if not user:
             raise Auth.AuthError(message=_("CGI Authentication failed: no user specified."))
 
-        user = user.toUnicode(user)
+        user = utils.toUnicode(user)
 
         # Create the user in the Prewikka database, so that its permission
         # might be modified by another administrative user.
_______________________________________________
Prelude-cvslog site list
[email protected]
http://lists.prelude-technologies.com/mailman/listinfo/prelude-cvslog