From: <var...@us...> - 2010-04-06 14:58:48
|
Revision: 7319 http://phpwiki.svn.sourceforge.net/phpwiki/?rev=7319&view=rev Author: vargenau Date: 2010-04-06 14:58:41 +0000 (Tue, 06 Apr 2010) Log Message: ----------- Use base64 to make file UTF-8 clean Modified Paths: -------------- trunk/lib/plugin/RateIt.php Modified: trunk/lib/plugin/RateIt.php =================================================================== --- trunk/lib/plugin/RateIt.php 2010-04-05 19:45:03 UTC (rev 7318) +++ trunk/lib/plugin/RateIt.php 2010-04-06 14:58:41 UTC (rev 7319) @@ -177,10 +177,8 @@ readfile($actionImg); } else { header('Content-type: image/png'); - echo '\x89PNG - - -IHDR ĉ IDATx^\xC0 \xC20\xEDz\xE7X \xFF7-` IEND\xAEB`\x82'; + echo base64_decode('iVBORw0KGgoAAAANSUhEUgAAAAIAAAACAQMAAABIeJ9nAAAAA1BMVEX///' + .'+nxBvIAAAAAXRSTlMAQObYZgAAABNJREFUeF4NwAEBAAAAgJD+r5YGAAQAAXHhfPAAAAAASUVORK5CYII='); } exit; } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |