Skip to content

Commit 5f013e6

Browse files
committed
better URL cleanup
1 parent b52586f commit 5f013e6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

inc/front/cdn.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -211,7 +211,7 @@ function rocket_cdn_inline_styles( $html ) {
211211
if ( ( bool ) $matches ) {
212212
$i = 0;
213213
foreach( $matches[1] as $url ) {
214-
$url = trim( $url, " \t\n\r\0\x0B\"'"#039;" );
214+
$url = str_replace( array( ' ', '\t', '\n', '\r', '\0', '\x0B', '"', "'", '"', '#039;' ), '', $url );
215215

216216
if ( '#' === substr( $url, 0, 1 ) ) {
217217
continue;

0 commit comments

Comments
 (0)