Commit c2411859 authored by Łukasz Nowak's avatar Łukasz Nowak

Ignore meaningless / in the end of URL.

parent 2e084439
...@@ -54,7 +54,7 @@ ...@@ -54,7 +54,7 @@
\n \n
portal = context.getPortalObject()\n portal = context.getPortalObject()\n
mailhost = portal.MailHost\n mailhost = portal.MailHost\n
promise_url = portal.getPromiseParameter(\'external_service\', \'smtp_url\')\n promise_url = portal.getPromiseParameter(\'external_service\', \'smtp_url\').rstrip(\'/\')\n
\n \n
if promise_url is None:\n if promise_url is None:\n
return\n return\n
...@@ -69,7 +69,7 @@ if mailhost.smtp_uid:\n ...@@ -69,7 +69,7 @@ if mailhost.smtp_uid:\n
else:\n else:\n
auth = \'\'\n auth = \'\'\n
\n \n
url = "%s://%s%s:%s/" % (protocol, auth, mailhost.smtp_host, mailhost.smtp_port)\n url = "%s://%s%s:%s" % (protocol, auth, mailhost.smtp_host, mailhost.smtp_port)\n
\n \n
active_result = ActiveResult()\n active_result = ActiveResult()\n
\n \n
......
22 23
\ No newline at end of file \ No newline at end of file
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment