SVG usage in blockreassurance is broken #25458
Labels
1.7.7.4
Affects versions
Blockreassurance
Module: blockreassurance
Bug
Type: Bug
FO
Category: Front Office
Image
Label: Which BO under menu is concerned
Major
Severity: major bug > https://build.prestashop.com/news/severity-classification
Module
Module
Ready
Status: Issue is ready to be worked on
Verified
The issue has been reproduced
Projects
Describe the bug
Blockreassurance blocks crash on FO when using an SVG icon and
__PS_BASE_URI__
is a slashExpected behavior
No crash, correct behavior and display of blockreassurrance blocks on FO
Steps to Reproduce
Steps to reproduce the behavior:
__PS_BASE_URI__
is a single slash/
(default situation)Warning: finfo_file(...): failed to open stream: No such file or directory
Screenshots
As mentioned by @matthieumota in PR PrestaShop/blockreassurance#210 when
__PS_BASE_URI__
is a/
thestr_replace()
replace all slashes by project directory. This is the source of the bug.Additional information
The text was updated successfully, but these errors were encountered: