aboutsummaryrefslogtreecommitdiff
path: root/views/default/object/image.php
diff options
context:
space:
mode:
authorCash Costello <cash.costello@gmail.com>2009-10-05 23:20:10 +0000
committerCash Costello <cash.costello@gmail.com>2009-10-05 23:20:10 +0000
commit39060653573bf4dd51e891aecdb571c78a866675 (patch)
treef1fc85cba89454a2eeb588a1f85f7dc49f200c5a /views/default/object/image.php
parent9b3cba566de0bc5740e48f3f50eb8b09ffad49dc (diff)
downloadelgg-39060653573bf4dd51e891aecdb571c78a866675.tar.gz
elgg-39060653573bf4dd51e891aecdb571c78a866675.tar.bz2
not using action token validation for image download
Diffstat (limited to 'views/default/object/image.php')
-rw-r--r--views/default/object/image.php6
1 files changed, 2 insertions, 4 deletions
diff --git a/views/default/object/image.php b/views/default/object/image.php
index 01beb25f6..dd52f872e 100644
--- a/views/default/object/image.php
+++ b/views/default/object/image.php
@@ -149,10 +149,8 @@
// this code controls whether the photo is a hyperlink or not and what it links to
$image_link = false;
if (get_plugin_setting('download_link', 'tidypics') != "disabled") {
- // admin allows downloads so default to download link
- $ts = time();
- $token = generate_action_token($ts);
- $image_link = $vars['url'] . "action/tidypics/download?file_guid=" . $image_guid . "&amp;view=inline&amp;__elgg_token={$token}&__elgg_ts={$ts}";
+ // admin allows downloads so default to inline download link
+ $image_link = $vars['url'] . "action/tidypics/download?file_guid=" . $image_guid . "&amp;view=inline";
}
// does any plugin want to override the link
$image_link = trigger_plugin_hook('tp_image_link', 'image', $image, $image_link);