Skip to content

Commit b8c9c25

Browse files
committed
Fix call to urlencode
Signed-off-by: Ivan Kanakarakis <[email protected]>
1 parent 831e06e commit b8c9c25

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/saml2/s2repoze/plugins/formswithhidden.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import urllib
1+
from six.moves.urllib.parse import urlencode
22

33
from paste.httpheaders import CONTENT_LENGTH
44
from paste.httpheaders import CONTENT_TYPE
@@ -71,7 +71,7 @@ def identify(self, environ):
7171
return None
7272
del query[self.login_form_qs]
7373
query.update(qinfo)
74-
environ["QUERY_STRING"] = urllib.urlencode(query)
74+
environ["QUERY_STRING"] = urlencode(query)
7575
environ["repoze.who.application"] = HTTPFound(construct_url(environ))
7676
credentials = {"login": login, "password": password}
7777
max_age = form.get("max_age", None)

0 commit comments

Comments
 (0)