simplexml_load_string warnings with alt attribute

Created on 24 September 2018, almost 6 years ago
Updated 19 September 2023, 9 months ago

If the alt attribute in the img tag contains special characters - e.g. & or % - the module throws warnings:

  • Warning: simplexml_load_string(): Entity: line 1: parser error : xmlParseEntityRef: no name in _picture_filter_prepare_image() (Zeile 1766 von xxx/htdocs/sites/all/modules/picture/picture.module).
  • Warning: simplexml_load_string(): ping" src="/sites/default/files/image.jpg" alt="New Alt-Tag with & in _picture_filter_prepare_image() (Zeile 1766 von xxx/htdocs/sites/all/modules/picture/picture.module).
  • Warning: simplexml_load_string(): ^ in _picture_filter_prepare_image() (Zeile 1766 von xxx/htdocs/sites/all/modules/picture/picture.module).
πŸ› Bug report
Status

Closed: outdated

Version

2.0

Component

Code

Created by

πŸ‡©πŸ‡ͺGermany WalterP

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • πŸ‡¬πŸ‡§United Kingdom lesleyfernandes

    I am closing all very old tickets that have not received comments for a long time. If someone still faces these issues or thinks they are relevant, please reopen it. Feel free to contribute with more info or a patch.

Production build 0.69.0 2024