summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorEvan Prodromou <evan@status.net>2010-01-10 12:07:49 -0800
committerEvan Prodromou <evan@status.net>2010-01-10 12:07:49 -0800
commit30409f7bad45862ce498d7084ab2a8a4287e7d3f (patch)
tree741548c2e50d3fe41644fa8a2ac8a0dc41a1ed1b /lib
parent91760ae2ae677c68fa818e98e35525f07ded3fd8 (diff)
debugging code to find passed-in objects in munge_password
Diffstat (limited to 'lib')
-rw-r--r--lib/util.php7
1 files changed, 6 insertions, 1 deletions
diff --git a/lib/util.php b/lib/util.php
index fdcc87677..00d1ab557 100644
--- a/lib/util.php
+++ b/lib/util.php
@@ -62,7 +62,7 @@ function common_init_language()
// gettext will still select the right language.
$language = common_language();
$locale_set = common_init_locale($language);
-
+
setlocale(LC_CTYPE, 'C');
// So we do not have to make people install the gettext locales
$path = common_config('site','locale_path');
@@ -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);
}