Fix infinite loop if quotation reach last line of the post
[banana.git] / examples / xface.php
index 2a50f9f..613ff06 100644 (file)
@@ -1,6 +1,9 @@
 <?php
 
-header('Content-Type: image/jpeg');
-passthru('echo '.escapeshellarg(base64_decode(str_replace(' ', '+', $_REQUEST['face']))).'|uncompface -X |convert xbm:- jpg:-');
+header('Content-Type: image/gif');
+passthru('echo ' . escapeshellarg(base64_decode($_REQUEST['face']))
+        . '| uncompface -X '
+        . '| convert -transparent white xbm:- gif:-');
 
+// vim:set et sw=4 sts=4 ts=4
 ?>