http://www.mediawiki.org/wiki/Special:Code/MediaWiki/72365
Revision: 72365
Author: tparscal
Date: 2010-09-04 10:20:57 +0000 (Sat, 04 Sep 2010)
Log Message:
-----------
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.
Modified Paths:
--------------
trunk/phase3/includes/CSSMin.php
Modified: trunk/phase3/includes/CSSMin.php
===================================================================
--- trunk/phase3/includes/CSSMin.php 2010-09-04 10:13:06 UTC (rev 72364)
+++ trunk/phase3/includes/CSSMin.php 2010-09-04 10:20:57 UTC (rev 72365)
@@ -62,7 +62,7 @@
// 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
_______________________________________________
MediaWiki-CVS mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs