trippo / ResponsiveFilemanager

Completely Responsive Filemanager with integration for tinyMCE,CKEditor and CLEditor editor
http://responsivefilemanager.com
Other
808 stars 368 forks source link

URL upload not working #655

Open emiklos opened 3 years ago

emiklos commented 3 years ago

https://github.com/trippo/ResponsiveFilemanager/blob/d181ab5c6646c24156d01125679b2cb871f0f47f/filemanager/upload.php#L84

example: $url = 'https://upload.wikimedia.org/wikipedia/commons/thumb/c/c1/Test_wiki_logo_notext.png/600px-Test_wiki_logo_notext.png'; $urlPattern = '/^(https?:\/\/)?([\da-z.-]+.[a-z.]{2,6}|[\d.]+)([\/?=&#]{1}[\da-z.-]+)*[\/\?]?$/i';

preg_match($urlPattern, $url) = 0, so this if in line 86: if (preg_match($urlPattern, $url)) is false, so go to else ('Is not a valid URL.').