Skip to content
Snippets Groups Projects
Commit 3e9fa219 authored by Antoine Guenet's avatar Antoine Guenet
Browse files

[FIX] web_editor: properly convert svg shapes


When converting inline svg shapes to images, we checked if the source
ended with ".svg", which is not enough, as it can include query
parameters (eg, .svg?color=red). We now simply check if it includes
".svg" instead.

We also need to make sure we didn't make a clone of the image in an mso
before converting it, as the source wouldn't get converted in the mso.

closes odoo/odoo#125764

Signed-off-by: default avatarDavid Monjoie (dmo) <dmo@odoo.com>
parent ce2ea13d
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment