3liz / lizmap-web-client

Transfer a QGIS project on a server, Lizmap is providing the web interface to browse it
https://www.lizmap.com
Mozilla Public License 2.0
260 stars 143 forks source link

[Bug]: Lizmap 3.8 regression : tooltip HTML is not properly rendered in popups anymore #4990

Open vlebert opened 2 hours ago

vlebert commented 2 hours ago

What is the bug? (in English)

Since 3.8 updates, HTML in QGIS tooltip does not seem to be rendered properly.

For exemple this tooltip used to be rendered properly. In 3.8

digi-studio 2024-11-18 at 16 48 04

Steps to reproduce the issue

Just load the attached project in Lizmap 3.8

lizmap_regression_popup.zip

It contains a layer with popup HTML configured as

<p>Hello</p>
<p>
<ul>
<li>liste 1</li>
<li>liste 2</li>
</ul>
</p>
<script>console.log("test script")</script>

it renders as

<p>Hello</p>

<p>
</p>
<ul>
<li>liste 1</li>
<li>liste 2</li>
</ul>
<p></p>

And the script is removed.

Versions, safeguards, check summary etc

Versions :

List of Lizmap Web Client modules :
* saas : 1.7.4 * webdav : 1.1.6
List of safeguards :
* Mode : normal
* Allow parent folder : no
* Prevent other drive : yes
* Prevent PG service : no
* Prevent PG Auth DB : yes
* Force PG user&pass : yes
* Prevent ECW : yes

Check Lizmap plugin

Operating system

Lizmap hosting

Browsers

Chrome

Browsers version

Version 1.69.0 (55816)

Relevant log output

No response

Gustry commented 1 hour ago

The Githubissues.

  • Githubissues is a development platform for aggregating issues.