From: x2003bruneau Date: Thu, 13 Jul 2006 07:55:14 +0000 (+0000) Subject: Fix xface in case it contains '/' X-Git-Tag: xorg/0.9.11~443 X-Git-Url: http://git.polytechnique.org/?a=commitdiff_plain;h=1df71310ac4d12fb4c69434ff7d9a792ff7392be;p=platal.git Fix xface in case it contains '/' git-svn-id: svn+ssh://murphy/home/svn/platal/trunk@457 839d8a87-29fc-0310-9880-83ba4fa771e5 --- diff --git a/modules/banana.php b/modules/banana.php index 87c5db2..fa6576b 100644 --- a/modules/banana.php +++ b/modules/banana.php @@ -104,8 +104,11 @@ class BananaModule extends PLModule return $this->run_banana($page, Array('subscribe' => 1)); } - function handler_xface(&$page, $face = null) + function handler_xface() { + $args = func_get_args(); + array_shift($args); + $face = join('/', $args); header('Content-Type: image/jpeg'); passthru('echo ' . escapeshellarg(base64_decode($face)) . '| uncompface -X '