From b6449bfd5f09d49a1540bbbcd33dce22f4ad9bdb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fl=C3=B6ssie?= Date: Wed, 30 Jun 2021 09:18:06 +0200 Subject: [PATCH] Escape HTML chars in camera/lens name in quick info box (fixes #6294) --- rtgui/editorpanel.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/rtgui/editorpanel.cc b/rtgui/editorpanel.cc index a365a8599..d12489a13 100644 --- a/rtgui/editorpanel.cc +++ b/rtgui/editorpanel.cc @@ -1335,8 +1335,8 @@ void EditorPanel::info_toggled () if (idata && idata->hasExif(selectedFrame)) { infoString = Glib::ustring::compose ("%1 + %2\nf/%3 %4s %5%6 %7mm", - Glib::ustring (idata->getMake() + " " + idata->getModel()), - Glib::ustring (idata->getLens()), + escapeHtmlChars (idata->getMake() + " " + idata->getModel()), + escapeHtmlChars (idata->getLens()), Glib::ustring (idata->apertureToString (idata->getFNumber(selectedFrame))), Glib::ustring (idata->shutterToString (idata->getShutterSpeed(selectedFrame))), M ("QINFO_ISO"), idata->getISOSpeed(selectedFrame),