diff options
author | Klap-in <klapinklapin@gmail.com> | 2013-05-21 12:36:45 +0200 |
---|---|---|
committer | Klap-in <klapinklapin@gmail.com> | 2013-05-21 12:36:45 +0200 |
commit | 0a2029172f535e4dfa258b8fe96e457c865cf18d (patch) | |
tree | b1c053311f198e10b8a9919c595b375777f79656 /inc/fetch.functions.php | |
parent | a07e7a4fb1edaeca6bb2cb537b368c31a580675c (diff) | |
download | rpg-0a2029172f535e4dfa258b8fe96e457c865cf18d.tar.gz rpg-0a2029172f535e4dfa258b8fe96e457c865cf18d.tar.bz2 |
Support handle of images from ftp.
ml() can built url to these images, either fetch didn't accept them.
Diffstat (limited to 'inc/fetch.functions.php')
-rw-r--r-- | inc/fetch.functions.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/inc/fetch.functions.php b/inc/fetch.functions.php index 5801e96fa..b85a1284f 100644 --- a/inc/fetch.functions.php +++ b/inc/fetch.functions.php @@ -97,7 +97,7 @@ function checkFileStatus(&$media, &$file, $rev = '', $width=0, $height=0) { global $MIME, $EXT, $CACHE, $INPUT; //media to local file - if(preg_match('#^(https?)://#i', $media)) { + if(preg_match('#^(https?|ftp)://#i', $media)) { //check hash if(substr(md5(auth_cookiesalt().$media), 0, 6) !== $INPUT->str('hash')) { return array(412, 'Precondition Failed'); |