Commit 56d04f70 authored by Laurent Montel's avatar Laurent Montel 😁

Avoid url error (don't quote them)

parent b1bb64f1
......@@ -638,6 +638,7 @@ bool KMailProtocolURLHandler::handleClick(const QUrl &url, ViewerPrivate *w) con
QString KMailProtocolURLHandler::statusBarMessage(const QUrl &url, ViewerPrivate *) const
{
qDebug()<<" QString KMailProtocolURLHandler::statusBarMessage(const QUrl &url, ViewerPrivate *) const"<<url;
if (url.scheme() == QLatin1String("kmail")) {
const QString urlPath(url.path());
if (urlPath == QLatin1String("showHTML")) {
......
{% 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 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 %}
{% 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>
......@@ -17,4 +17,4 @@
<div style="position: relative">
{{ content|safe }}
</div>
{% endif %}
\ No newline at end of file
{% endif %}
......@@ -128,7 +128,7 @@
{% endif %}
{% endif %}
</td>
<td align="right" valign="top" nowrap="nowrap"><a href="kmail:hideSignatureDetails">{% i18n "Hide Details" %}</a></td>
<td align="right" valign="top" nowrap="nowrap"><a href=kmail:hideSignatureDetails>{% i18n "Hide Details" %}</a></td>
</tr>
<tr>
<td align="right" valign="bottom" nowrap="nowrap">{{block.auditlog}}</td>
......@@ -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." %}
......@@ -150,7 +150,7 @@
{% endif %}
</td>
{% if not block.printing %}
<td align="right"><a href="kmail:showSignatureDetails">{% i18n "Show Details" %}</a></td>
<td align="right"><a href=kmail:showSignatureDetails>{% i18n "Show Details" %}</a></td>
{% endif %}
{% endif %}
</tr>
......@@ -164,4 +164,4 @@
<tr class="{{block.signClass}}H">
<td dir="{{block.dir}}">{% i18n "End of signed message" %}</td>
</tr>
</table>
\ No newline at end of file
</table>
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