From: hickert Date: Thu, 9 Sep 2010 13:35:29 +0000 (+0000) Subject: Fixed check hook execution X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=55055291c2a92762b809a27603bd468c6a37c266;p=gosa.git Fixed check hook execution git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@19587 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/gosa-core/plugins/personal/password/class_password.inc b/gosa-core/plugins/personal/password/class_password.inc index 84422ce03..dd83519a1 100644 --- a/gosa-core/plugins/personal/password/class_password.inc +++ b/gosa-core/plugins/personal/password/class_password.inc @@ -111,8 +111,8 @@ class password extends plugin // Call the check hook $attrs = array(); - $attrs['current_password'] = escapeshellarg($current_password); - $attrs['new_password'] = escapeshellarg($new_password); + $attrs['current_password'] = ($current_password); + $attrs['new_password'] = ($new_password); // Perform GOsa password policy checks if(empty($current_password)){ @@ -206,10 +206,8 @@ class password extends plugin if($returnCode !== 0){ @DEBUG (DEBUG_SHELL, __LINE__, __FUNCTION__, __FILE__, $command, "Execution failed code: ".$returnCode); @DEBUG (DEBUG_SHELL, __LINE__, __FUNCTION__, __FILE__, $command, "Result: ".$err); - if($displayErrors){ - $message= msgPool::cmdexecfailed($cmd,$command, get_class($plugin)); - msg_dialog::display(_("Error"), $message, ERROR_DIALOG); - } + $message= msgPool::cmdexecfailed($err,$command, "password"); + msg_dialog::display(_("Error"), $message, ERROR_DIALOG); }else{ @DEBUG (DEBUG_SHELL, __LINE__, __FUNCTION__, __FILE__, $command, "Result: ".$arr); return(preg_split("/\n/", $arr,0,PREG_SPLIT_NO_EMPTY));