Skip to content
This repository has been archived by the owner on Jan 29, 2020. It is now read-only.

Commit

Permalink
Merge branch 'master' of https://github.com/sgehrig/zf2 into hotfix/l…
Browse files Browse the repository at this point in the history
…dap-security
  • Loading branch information
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Adapter/Ldap.php
Original file line number Diff line number Diff line change
Expand Up @@ -365,7 +365,7 @@ public function authenticate()
} else {
$line = $zle->getLine();
$messages[] = $zle->getFile() . "($line): " . $zle->getMessage();
$messages[] = str_replace($password, '*****', $zle->getTraceAsString());
$messages[] = preg_replace('/\b'.preg_quote($password, '/').'\b/', '*****', $zle->getTraceAsString());
$messages[0] = 'An unexpected failure occurred';
}
$messages[1] = $zle->getMessage();
Expand Down

0 comments on commit 7bd2286

Please sign in to comment.