Skip to content
Snippets Groups Projects
Commit 0a202917 authored by Klap-in's avatar Klap-in
Browse files

Support handle of images from ftp.

ml() can built url to these images, either fetch didn't accept them.
parent a07e7a4f
No related branches found
No related tags found
No related merge requests found
......@@ -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');
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment