mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
BUGFIX: absoluteURLs() rewrites URLs in list-style-image elements
This applies the patch from and resolves #6798
This commit is contained in:
parent
7483970f68
commit
4756b97daa
@ -62,6 +62,7 @@ class HTTP {
|
||||
}
|
||||
$regExps[] = '/(background-image:[^;]*url *\()([^)]+)(\))/ie';
|
||||
$regExps[] = '/(background:[^;]*url *\()([^)]+)(\))/ie';
|
||||
$regExps[] = '/(list-style-image:[^;]*url *\()([^)]+)(\))/ie';
|
||||
|
||||
// Make
|
||||
$code = 'stripslashes("$1") . (' . str_replace('$URL', 'stripslashes("$2")', $code) . ') . stripslashes("$3")';
|
||||
|
Loading…
Reference in New Issue
Block a user