debugging code to find passed-in objects in munge_password

This commit is contained in:
Evan Prodromou 2010-01-10 12:07:49 -08:00
parent 91760ae2ae
commit 30409f7bad
1 changed files with 6 additions and 1 deletions

View File

@ -119,6 +119,11 @@ function common_language()
function common_munge_password($password, $id)
{
if (is_object($id) || is_object($password)) {
$e = new Exception();
common_log(LOG_ERR, __METHOD__ . ' object in param to common_munge_password ' .
str_replace("\n", " ", $e->getTraceAsString()));
}
return md5($password . $id);
}