[SCM] ktp-text-ui packaging branch, master, updated. debian/15.12.1-1-1918-gdf4b0ec

Maximiliano Curia maxy at moszumanska.debian.org
Sat May 28 00:24:28 UTC 2016


Gitweb-URL: http://git.debian.org/?p=pkg-kde/applications/ktp-text-ui.git;a=commitdiff;h=eef4964

The following commit has been merged in the master branch:
commit eef49648da7342456feaaa157d156b69357e8e39
Author: Nikita Skovoroda <chalkerx at gmail.com>
Date:   Wed Mar 12 23:01:14 2014 +0100

    Escape what we put in alt= of the generated LaTeX image
    
    Reviewed-by: Martin Klapetek
---
 filters/latex/latex-filter.cpp | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/filters/latex/latex-filter.cpp b/filters/latex/latex-filter.cpp
index c7122ff..575882b 100644
--- a/filters/latex/latex-filter.cpp
+++ b/filters/latex/latex-filter.cpp
@@ -26,6 +26,7 @@
 #include "latexconfig.h"
 
 #include <QImage>
+#include <QTextDocument>
 
 #include <KPluginFactory>
 #include <KDebug>
@@ -68,7 +69,7 @@ void LatexFilter::filterMessage(KTp::Message &message, const KTp::MessageContext
         handleLatex(formula) %
         QLatin1Literal("\" style=\"max-width:100%;margin-top:3px\"") %
         QLatin1Literal("alt=\"") %
-        formula %
+        Qt::escape(formula) %
         QLatin1Literal("\" isEmotion=\"true\"/>"));
 
         int length = rg.matchedLength();

-- 
ktp-text-ui packaging



More information about the pkg-kde-commits mailing list