Skip to content

Commit f5eabcb

Browse files
committed
Fix regression in 7b6810d (#103) related to redirect_uri path
Closes #146
1 parent 62f4888 commit f5eabcb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

emailproxy.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -761,7 +761,7 @@ def log_message(self, _format_string, *args):
761761
class RedirectionReceiverWSGIApplication:
762762
def __call__(self, environ, start_response):
763763
start_response('200 OK', [('Content-type', 'text/html; charset=utf-8')])
764-
token_request['response_url'] = token_request['redirect_uri'].rstrip('/') + environ.get(
764+
token_request['response_url'] = '/'.join(token_request['redirect_uri'].split('/')[0:3]) + environ.get(
765765
'PATH_INFO') + '?' + environ.get('QUERY_STRING')
766766
return [('<html><head><title>%s authentication complete (%s)</title><style type="text/css">body{margin:'
767767
'20px auto;line-height:1.3;font-family:sans-serif;font-size:16px;color:#444;padding:0 24px}'

0 commit comments

Comments
 (0)