From c8d9ba1a5f2802d8f1302768717f067b9626d732 Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Tue, 21 Oct 2003 09:18:21 +0000 Subject: [PATCH] small fix to not use eval --- phpgwapi/inc/class.interserver.inc.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/phpgwapi/inc/class.interserver.inc.php b/phpgwapi/inc/class.interserver.inc.php index 107532c9de..40fa8ebe08 100644 --- a/phpgwapi/inc/class.interserver.inc.php +++ b/phpgwapi/inc/class.interserver.inc.php @@ -127,8 +127,8 @@ /* send command to remote server */ function send($method_name, $args, $url, $debug=True) { - $cmd = '$this->_send_' . $this->mode . '_' . $this->security . '($method_name, $args, $url, $debug);'; - eval($cmd); + $cmd = '_send_' . ($this->mode ? $this->mode : 'xmlrpc') . '_' . $this->security; + $this->$cmd($method_name, $args, $url, $debug); return $this->result; }