From: Trevor Parscal Date: Sat, 4 Sep 2010 10:20:57 +0000 (+0000) Subject: Fixes bug introduced r71767 - the stripping of = from the right side of data URLs... X-Git-Tag: 1.31.0-rc.0~35162 X-Git-Url: http://git.cyclocoop.org/%7B%24admin_url%7Dmes_infos.php?a=commitdiff_plain;h=9edbc062af7cf8fed7021de3c06a473b57782371;p=lhc%2Fweb%2Fwiklou.git 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. --- 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