diff options
author | Cash Costello <cash.costello@gmail.com> | 2012-07-14 11:05:00 -0400 |
---|---|---|
committer | Cash Costello <cash.costello@gmail.com> | 2012-07-14 11:05:00 -0400 |
commit | 47fe584235df04681b6cf185d91a98d2e3f6e30f (patch) | |
tree | 858f6a66508b690293cc57916f500130ada2f9e1 /start.php | |
parent | e9f0301ba2235d3b8a5f3e7b40c6e98f64edcc0a (diff) | |
download | elgg-47fe584235df04681b6cf185d91a98d2e3f6e30f.tar.gz elgg-47fe584235df04681b6cf185d91a98d2e3f6e30f.tar.bz2 |
added better logging for flash uploader
Diffstat (limited to 'start.php')
-rw-r--r-- | start.php | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -488,23 +488,26 @@ function tidypics_ajax_session_handler($hook, $type, $value, $params) { } if (!$user) { + trigger_error('Tidypics warning: failed to get user in flash uploader', E_USER_WARNING); return; } if (!$token || !$ts || !$session_id || !$tidypics_token) { + trigger_error('Tidypics warning: token information missing in flash uploader', E_USER_WARNING); return; } $hour = 60*60; $now = time(); if ($ts < $now-$hour || $ts > $now+$hour) { + trigger_error('Tidypics warning: failed time check in flash uploader', E_USER_WARNING); return; } $generated_token = md5($session_id . get_site_secret() . $ts . $user->salt); if ($tidypics_token !== $generated_token) { - error_log("Tidypics: bad tp token"); + trigger_error('Tidypics warning: token check failed in flash uploader', E_USER_WARNING); return; } |