Skip to content
Snippets Groups Projects
Commit d2ef9c62 authored by Samuel Degueldre's avatar Samuel Degueldre
Browse files

[FIX] web_editor: use strict equal instead of =like in shape controller


Currently, the shape controller uses =like when looking for an
attachment with a matching URL, but what is compared against is the
request's path. While this is not a security issue as we know the path
starts with the controller's route and only look for public attachments,
it's still undesirable as the end of the url may contain underscores or
percent and we do not want those to be interpreted as a pattern.

closes odoo/odoo#86623

Signed-off-by: default avatarQuentin Smetz (qsm) <qsm@odoo.com>
parent 766964e4
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