return $rsl;
case "x-face":
- return '<img src="xface.php?face='.base64_encode($_text).'" alt="x-face" />';
+ return '<img src="xface.php?face='.urlencode(base64_encode($_text)).'" alt="x-face" />';
default:
if (function_exists('hook_formatDisplayHeader')
<?php
header('Content-Type: image/jpeg');
-passthru('echo '.escapeshellarg(base64_decode(str_replace(' ', '+', $_REQUEST['face']))).'|uncompface -X |convert xbm:- jpg:-');
+passthru('echo '.escapeshellarg(base64_decode($_REQUEST['face'])).'|uncompface -X |convert xbm:- jpg:-');
?>