Commit a7b8d4c1 authored by Yuri Chornoivan's avatar Yuri Chornoivan

Escape the quotation marks for correct message extraction

parent 2ae2d570
{% if not block.htmlMail or not block.loadExternal and block.containsExternalReferences %}
<div class="htmlWarn">
{% if not block.htmlMail %}
{% i18n_var '<b>Note:</b> This is an HTML message. For security reasons, only the raw HTML code is shown. If you trust the sender of this message then you can activate formatted HTML display for this message <a href="kmail:showHTML">by clicking here</a>.' as msg %}
{% i18n_var '<b>Note:</b> This is an HTML message. For security reasons, only the raw HTML code is shown. If you trust the sender of this message then you can activate formatted HTML display for this message <a href=\"kmail:showHTML\">by clicking here</a>.' as msg %}
{% elif not block.loadExternal and block.containsExternalReferences %}
{% i18n_var '<b>Note:</b> This HTML message may contain external references to images etc. For security/privacy reasons external references are not loaded. If you trust thesender of this message then you can load the external references for this message <a href="kmail:loadExternal">by clicking here</a>.' as msg %}
{% i18n_var '<b>Note:</b> This HTML message may contain external references to images etc. For security/privacy reasons external references are not loaded. If you trust the sender of this message then you can load the external references for this message <a href=\"kmail:loadExternal\">by clicking here</a>.' as msg %}
{% endif %}
{{ msg|safe }}
</div>
......
......@@ -140,7 +140,7 @@
{% i18n "Not enough information to check signature validity." %}
{% elif block.signClass == "signOkKeyOk" %}
{% if block.addr %}
{% i18n_var "Signed by <a href="mailto:%1">%2</a>." block.addr block.addr as signed %}
{% i18n_var "Signed by <a href=\"mailto:%1\">%2</a>." block.addr block.addr as signed %}
{{ signed|safe }}
{% else %}
{% i18n "Signature is valid." %}
......
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