From 9caef259c10c13c92ff4e5bd8b92cbdc85b62b7a Mon Sep 17 00:00:00 2001 From: James Harvey Date: Mon, 18 Feb 2013 19:12:12 +1100 Subject: [PATCH] Issue #1864536 by jamesharv,oyvind_restad: Fixed Missing query string in image. --- cdn.fallback.inc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cdn.fallback.inc b/cdn.fallback.inc index 55aec64..46f3de5 100644 --- a/cdn.fallback.inc +++ b/cdn.fallback.inc @@ -26,11 +26,11 @@ function cdn_html_alter_image_urls(&$html) { $pattern .= "([\"|'][^>]*)>"; // End of opening tag. $pattern .= "((]*\s+)src\s*=\s*[\"|'])([^\"|^']*)([\"|'])"; // Wrapped tag. $pattern .= ")#i"; - _cdn_html_alter_file_url($html, $pattern, 0, 4, 5, 1, 7, 11); + _cdn_html_alter_file_url($html, $pattern, 0, 4, 6, 1, 7, 11); // Image file URLs in tags. $pattern = "#((]*\s+)src\s*=\s*[\"|'])($url_prefix_regex)([^\"|^'|^\?]*)()(\?[^\"|^']*)?([\"|'])#i"; - _cdn_html_alter_file_url($html, $pattern, 0, 4, 5, 1, 7); + _cdn_html_alter_file_url($html, $pattern, 0, 4, 6, 1, 7); } /** -- 1.7.10.2 (Apple Git-33)