mirror of
https://github.com/e107inc/e107.git
synced 2025-08-05 06:07:32 +02:00
Bugtracker #4867 - recognise https:// files as external downloads
This commit is contained in:
@@ -9,9 +9,9 @@
|
|||||||
*
|
*
|
||||||
*
|
*
|
||||||
* $Source: /cvs_backup/e107_0.8/e107_plugins/download/handlers/adminDownload_class.php,v $
|
* $Source: /cvs_backup/e107_0.8/e107_plugins/download/handlers/adminDownload_class.php,v $
|
||||||
* $Revision: 1.27 $
|
* $Revision: 1.28 $
|
||||||
* $Date: 2009-12-03 00:22:25 $
|
* $Date: 2009-12-05 09:49:02 $
|
||||||
* $Author: bugrain $
|
* $Author: e107steved $
|
||||||
*/
|
*/
|
||||||
|
|
||||||
if (!e107::isInstalled('download')) { exit(); }
|
if (!e107::isInstalled('download')) { exit(); }
|
||||||
@@ -637,7 +637,7 @@ class adminDownload extends download
|
|||||||
$counter++;
|
$counter++;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (preg_match("/http:|ftp:/", $download_url))
|
if (preg_match("/http:|https:|ftp:/", $download_url))
|
||||||
{
|
{
|
||||||
$download_url_external = $download_url;
|
$download_url_external = $download_url;
|
||||||
$download_url = '';
|
$download_url = '';
|
||||||
|
Reference in New Issue
Block a user