Code

We do not need to escape check hook commands
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Thu, 9 Sep 2010 13:36:11 +0000 (13:36 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Thu, 9 Sep 2010 13:36:11 +0000 (13:36 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@19588 594d385d-05f5-0310-b6e9-bd551577e9d8

gosa-core/html/password.php

index fc5fe83afac6f99c43f98002f0e2cc39f980a693..0b93bf955c7b0ee690a05157dc36d29cca23c8d6 100644 (file)
@@ -273,8 +273,8 @@ if ($_SERVER["REQUEST_METHOD"] == "POST" && isset($_POST['apply'])) {
     // Call external check hook to validate the password change
     if(!count($message)){
         $attrs = array();
-        $attrs['current_password'] = escapeshellarg($current_password);
-        $attrs['new_password'] = escapeshellarg($new_password);
+        $attrs['current_password'] = ($current_password);
+        $attrs['new_password'] = ($new_password);
         $checkRes = password::callCheckHook($config,$ui->dn,$attrs);
         if(count($checkRes)){
             $message[] = sprintf(_("Check-hook reported a problem: %s. Password change canceled!"),implode($checkRes));