aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCash Costello <cash.costello@gmail.com>2012-07-14 11:05:00 -0400
committerCash Costello <cash.costello@gmail.com>2012-07-14 11:05:00 -0400
commit47fe584235df04681b6cf185d91a98d2e3f6e30f (patch)
tree858f6a66508b690293cc57916f500130ada2f9e1
parente9f0301ba2235d3b8a5f3e7b40c6e98f64edcc0a (diff)
downloadelgg-47fe584235df04681b6cf185d91a98d2e3f6e30f.tar.gz
elgg-47fe584235df04681b6cf185d91a98d2e3f6e30f.tar.bz2
added better logging for flash uploader
-rw-r--r--start.php5
1 files changed, 4 insertions, 1 deletions
diff --git a/start.php b/start.php
index 4db944119..884d53f02 100644
--- a/start.php
+++ b/start.php
@@ -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;
}