[Pypi-checkins] r864 - trunk/pypi

martin.von.loewis python-checkins at python.org
Sun Sep 12 11:30:22 CEST 2010


Author: martin.von.loewis
Date: Sun Sep 12 11:30:22 2010
New Revision: 864

Modified:
   trunk/pypi/webui.py
Log:
Encode OpenID fields with UTF-8 before checking signature.


Modified: trunk/pypi/webui.py
==============================================================================
--- trunk/pypi/webui.py	(original)
+++ trunk/pypi/webui.py	Sun Sep 12 11:30:22 2010
@@ -2546,7 +2546,7 @@
                 # Recheck OpenID response
                 qs = {}
                 for key, value in self.form.items():
-                    qs[key] = [value]
+                    qs[key] = [value.encode('utf-8')]
                 session = self.store.get_session_by_handle(self.form['openid.assoc_handle'])
                 if not session:
                     raise FormError, "Invalid session"


More information about the Pypi-checkins mailing list