From 1df71310ac4d12fb4c69434ff7d9a792ff7392be Mon Sep 17 00:00:00 2001 From: x2003bruneau Date: Thu, 13 Jul 2006 07:55:14 +0000 Subject: [PATCH] Fix xface in case it contains '/' git-svn-id: svn+ssh://murphy/home/svn/platal/trunk@457 839d8a87-29fc-0310-9880-83ba4fa771e5 --- modules/banana.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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 ' -- 2.1.4