diff options
author | Andreas Gohr <andi@splitbrain.org> | 2013-08-03 01:38:30 -0700 |
---|---|---|
committer | Andreas Gohr <andi@splitbrain.org> | 2013-08-03 01:38:30 -0700 |
commit | cab505616ec9b8ef3cd671e7337c91d065745932 (patch) | |
tree | 14a4ac45167bc164d91b0fee468f574ff3f6c53c /inc/media.php | |
parent | 4918284f94b8e3aca2f4db13f5a751811e113061 (diff) | |
parent | 795fb356a622ef80f6486d2016b0c7643f46c1d7 (diff) | |
download | rpg-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 'inc/media.php')
-rw-r--r-- | inc/media.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/inc/media.php b/inc/media.php index c76f2986c..c4378fe9e 100644 --- a/inc/media.php +++ b/inc/media.php @@ -1900,7 +1900,7 @@ function media_crop_image($file, $ext, $w, $h=0){ */ function media_get_token($id,$w,$h){ // token is only required for modified images - if ($w || $h) { + if ($w || $h || media_isexternal($id)) { $token = $id; if ($w) $token .= '.'.$w; if ($h) $token .= '.'.$h; |