From 9edbc062af7cf8fed7021de3c06a473b57782371 Mon Sep 17 00:00:00 2001 From: Trevor Parscal Date: Sat, 4 Sep 2010 10:20:57 +0000 Subject: [PATCH] Fixes bug introduced r71767 - the stripping of = from the right side of data URLs. Aparently this was misdiagnosed and Firefox was tollerant of it. By removing it, as suggested by Nikerabbit, images are working in Gecko and Webkit. --- includes/CSSMin.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/CSSMin.php b/includes/CSSMin.php index 76f3f98ed7..3272bbe0f4 100644 --- a/includes/CSSMin.php +++ b/includes/CSSMin.php @@ -62,7 +62,7 @@ class CSSMin { // If we ever get to PHP 5.3, we should use the Fileinfo extension instead of mime_content_type $type = mime_content_type( $file ); // Strip off any trailing = symbols (makes browsers freak out) - $data = rtrim( base64_encode( file_get_contents( $file ) ), '=' ); + $data = base64_encode( file_get_contents( $file ) ); // Build 2 CSS properties; one which uses a base64 encoded data URI in place of the @embed // comment to try and retain line-number integrity , and the other with a remapped an versioned // URL and an Internet Explorer hack making it ignored in all browsers that support data URIs -- 2.20.1