Code

Added escapeshellargs for security reasons
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Fri, 27 Aug 2010 12:47:14 +0000 (12:47 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Fri, 27 Aug 2010 12:47:14 +0000 (12:47 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.6@19475 594d385d-05f5-0310-b6e9-bd551577e9d8

gosa-plugins/addressbook/addons/addressbook/class_addressbook.inc

index f9f0aa5fea8e3955f0a7f0fc15fb568fc4c7f3c9..a3ac8d8e3a869dbd0e9ababa66d3ae049e423620 100644 (file)
@@ -206,7 +206,8 @@ class addressbook extends plugin
 
     /* Finally dial */
     if (isset($_POST['dial']) && session::is_set('source') && session::is_set('target')){
-      exec ($this->config->get_cfg_value("ctiHook")." '".session::get('source')."' '".session::get('target')."'", $dummy, $retval);
+      exec ($this->config->get_cfg_value("ctiHook")." ".
+            escapeshellarg(session::get('source'))." ".escapeshellarg(session::get('target')), $dummy, $retval);
       session::un_set('source');
       session::un_set('target');
     }