# HG changeset patch # User Thierry Florac # Date 1507876523 -7200 # Node ID 82ba8b3e99f39999369bf906c116692732276df3 # Parent fa51a3ae17a14c91f30f407c206af3b5721003b6 Added check for external links URLs diff -r fa51a3ae17a1 -r 82ba8b3e99f3 src/pyams_content/component/paragraph/html.py --- a/src/pyams_content/component/paragraph/html.py Fri Oct 13 08:34:54 2017 +0200 +++ b/src/pyams_content/component/paragraph/html.py Fri Oct 13 08:35:23 2017 +0200 @@ -106,7 +106,7 @@ link_info.address = email link_info.address_name = name or email link_info.title = {lang: link.attrib.get('title') or link.text} - else: + elif href.startswith('http://') or href.startswith('https://'): for association in associations.values(): external_info = IExternalLink(association, None) if (external_info is not None) and (external_info.url == href):