- Open on Drupal.org →Core: 7.x + Environment: PHP 7 & MySQL 5.5last update
over 1 year ago Waiting for branch to pass - 🇨🇷Costa Rica aquaphenix Alajuela
Re-roll of patch #16 as it doesn't apply correctly with other patches.
When using image lazyloader and the "Exclude images based on their image style" function i got this error.
Error: "Compilation failed: range out of order in character class at offset 121". This is because in lazyloader_excluded_by_image_style function
This is because the regex in lazyloader_excluded_by_image_style will fail if Image style name contains certain non escaped characters, in my case a hyphen "-".
Looking closer at the code there was more stuff going on...for example the enabled image style names were compared to the current image url - but we have access to the current image style name through $variables['style_name'].
see patch attached.
Needs review
2.0
Code
Not all content is available!
It's likely this issue predates Contrib.social: some issue and comment data are missing.
Re-roll of patch #16 as it doesn't apply correctly with other patches.