diff options
Diffstat (limited to 'mod/file/actions')
-rw-r--r-- | mod/file/actions/upload.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/mod/file/actions/upload.php b/mod/file/actions/upload.php index 82744730c..6af52c701 100644 --- a/mod/file/actions/upload.php +++ b/mod/file/actions/upload.php @@ -47,7 +47,7 @@ exit; } else { register_error($error); - forward($_SERVER['HTTP_REFERER']); + forward(REFERER); } } @@ -64,13 +64,13 @@ $file = get_entity($guid); if (!$file) { register_error(elgg_echo('file:cannotload')); - forward($_SERVER['HTTP_REFERER']); + forward(REFERER); } // user must be able to edit file if (!$file->canEdit()) { register_error(elgg_echo('file:noaccess')); - forward($_SERVER['HTTP_REFERER']); + forward(REFERER); } } |