| Summary: | Tooltips for images don't show tags containing "<" correctly | ||
|---|---|---|---|
| Product: | [Applications] digikam | Reporter: | Quincy <bbc.quincy> |
| Component: | Albums-IconView | Assignee: | Digikam Developers <digikam-bugs-null> |
| Status: | RESOLVED FIXED | ||
| Severity: | normal | CC: | caulier.gilles, metzpinguin |
| Priority: | NOR | ||
| Version First Reported In: | 7.2.0 | ||
| Target Milestone: | --- | ||
| Platform: | Microsoft Windows | ||
| OS: | Microsoft Windows | ||
| Latest Commit: | https://invent.kde.org/graphics/digikam/commit/7a672537ee7671355384bd86ee9b47a5db2ab3eb | Version Fixed/Implemented In: | 7.3.0 |
| Sentry Crash Report: | |||
|
Description
Quincy
2021-05-04 09:02:28 UTC
Can you provide an image sample including this kind of tags in metadata to reproduce Thanks in advance Gilles Caulier The tooltip is rendered in HTML. I guess we need to encode the tag text with QString::toHtmlEscaped(). Maik @Gilles: It is not metadata saved within the image, but a tag assigned via digiKam (database only). I think Maik is right, as "Test <bla> Test2" completely removes the part between the angle brackets. yes it's tag, but it can be hosted in file metadata for interoperability. So yes a such image with this king of tag, imported in a local session of digiKam can help to reproduce the problem. Gilles Caulier Git commit 7a672537ee7671355384bd86ee9b47a5db2ab3eb by Maik Qualmann. Committed on 04/05/2021 at 17:09. Pushed by mqualmann into branch 'master'. use HTML escape for tags in the tooltip FIXED-IN: 7.3.0 M +1 -2 NEWS M +1 -1 core/app/items/utils/tooltipfiller.cpp https://invent.kde.org/graphics/digikam/commit/7a672537ee7671355384bd86ee9b47a5db2ab3eb Thanks Maik for the quick fix! @Gilles: I usually do not taint the image files with anything, so I had to find again how to reactivate that behavior temporarily. BTW on that: The Menu entry to write metadata into files (now) is active but obviously useless if nothing is checked in the settings which metadata should be written to files. If something is checked the use is limited to the case where "lazy synchronization" is activated, too as otherwise this is done on-the-fly anyway. |