summaryrefslogtreecommitdiff
path: root/lib/exe
diff options
context:
space:
mode:
authorAndreas Gohr <andi@splitbrain.org>2013-08-03 01:38:30 -0700
committerAndreas Gohr <andi@splitbrain.org>2013-08-03 01:38:30 -0700
commitcab505616ec9b8ef3cd671e7337c91d065745932 (patch)
tree14a4ac45167bc164d91b0fee468f574ff3f6c53c /lib/exe
parent4918284f94b8e3aca2f4db13f5a751811e113061 (diff)
parent795fb356a622ef80f6486d2016b0c7643f46c1d7 (diff)
downloadrpg-cab505616ec9b8ef3cd671e7337c91d065745932.tar.gz
rpg-cab505616ec9b8ef3cd671e7337c91d065745932.tar.bz2
Merge pull request #224 from splitbrain/fetchimagetokexternal
Added check of token in fetch.php for external images.
Diffstat (limited to 'lib/exe')
-rw-r--r--lib/exe/fetch.php1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/exe/fetch.php b/lib/exe/fetch.php
index 7a2250373..5967494bf 100644
--- a/lib/exe/fetch.php
+++ b/lib/exe/fetch.php
@@ -60,6 +60,7 @@ if (defined('SIMPLE_TEST')) {
if($evt->advise_before()) {
// redirects
if($data['status'] > 300 && $data['status'] <= 304) {
+ if (defined('SIMPLE_TEST')) return; //TestResponse doesn't recognize redirects
send_redirect($data['statusmessage']);
}
// send any non 200 status