debugging code to find passed-in objects in munge_password
This commit is contained in:
parent
91760ae2ae
commit
30409f7bad
@ -62,7 +62,7 @@ function common_init_language()
|
|||||||
// gettext will still select the right language.
|
// gettext will still select the right language.
|
||||||
$language = common_language();
|
$language = common_language();
|
||||||
$locale_set = common_init_locale($language);
|
$locale_set = common_init_locale($language);
|
||||||
|
|
||||||
setlocale(LC_CTYPE, 'C');
|
setlocale(LC_CTYPE, 'C');
|
||||||
// So we do not have to make people install the gettext locales
|
// So we do not have to make people install the gettext locales
|
||||||
$path = common_config('site','locale_path');
|
$path = common_config('site','locale_path');
|
||||||
@ -119,6 +119,11 @@ function common_language()
|
|||||||
|
|
||||||
function common_munge_password($password, $id)
|
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);
|
return md5($password . $id);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user