Permalink
Browse files

Quick fix in parseStandardFormParameters

  • Loading branch information...
1 parent 86497a8 commit 4db62143b7c6c1ee0844d04c2ec6a619e5e1594b @cdujeu cdujeu committed Jun 24, 2016
Showing with 1 addition and 1 deletion.
  1. +1 −1 core/src/core/src/pydio/Core/Utils/Utils.php
@@ -1460,7 +1460,7 @@ public static function parseStandardFormParameters(ContextInterface $ctx, &$repD
$value = intval($value);
} else if ($type == "array") {
$value = explode(",", $value);
- } else if ($type == "password" && $ctx->hasUser()) {
+ } else if ($type == "password" && $ctx->hasUser() && !empty($cypheredPassPrefix)) {
if (trim($value) != "" && $value != "__AJXP_VALUE_SET__" && function_exists('mcrypt_encrypt')) {
// We encode as base64 so if we need to store the result in a database, it can be stored in text column
$value = $cypheredPassPrefix . base64_encode(mcrypt_encrypt(MCRYPT_RIJNDAEL_256, md5($ctx->getUser()->getId()."\1CDAFx¨op#"), $value, MCRYPT_MODE_ECB));

0 comments on commit 4db6214

Please sign in to comment.