diff MoinMoin/userprefs/oid.py @ 3234:a739558ca3dc

Page.url() default changed to relative=False
author Thomas Waldmann <tw AT waldmann-edv DOT de>
date Mon, 10 Mar 2008 00:21:21 +0100
parents a1322262398a
children a82b02396941
line wrap: on
line diff
--- a/MoinMoin/userprefs/oid.py	Sun Mar 09 23:10:28 2008 +0100
+++ b/MoinMoin/userprefs/oid.py	Mon Mar 10 00:21:21 2008 +0100
@@ -81,8 +81,7 @@
             qstr = wikiutil.makeQueryString({'action': 'userprefs',
                                              'handler': 'oid',
                                              'oid.return': '1'})
-            return_to = '%s/%s' % (request.getBaseURL(),
-                                   request.page.url(request, qstr))
+            return_to = request.getQualifiedURL(request.page.url(request, qstr))
             trust_root = request.getBaseURL()
             if oidreq.shouldSendRedirect():
                 redirect_url = oidreq.redirectURL(trust_root, return_to)
@@ -105,8 +104,7 @@
         qstr = wikiutil.makeQueryString({'action': 'userprefs',
                                          'handler': 'oid',
                                          'oid.return': '1'})
-        return_to = '%s/%s' % (request.getBaseURL(),
-                               request.page.url(request, qstr))
+        return_to = request.getQualifiedURL(request.page.url(request, qstr))
         info = oidconsumer.complete(query, return_to=return_to)
         if info.status == consumer.FAILURE:
             return _('OpenID error: %s.') % info.message