mirror of
https://github.com/mosbth/cimage.git
synced 2025-08-30 10:59:51 +02:00
adding support for whitelist of remote hostnames, #84
This commit is contained in:
@@ -8,7 +8,7 @@
|
||||
*
|
||||
*/
|
||||
|
||||
$version = "v0.7.0 (2015-02-10)";
|
||||
$version = "v0.7.0.x (latest)";
|
||||
|
||||
|
||||
|
||||
@@ -309,6 +309,9 @@ $allowRemote = getConfig('remote_allow', false);
|
||||
if ($allowRemote && $passwordMatch !== false) {
|
||||
$pattern = getConfig('remote_pattern', null);
|
||||
$img->setRemoteDownload($allowRemote, $pattern);
|
||||
|
||||
$whitelist = getConfig('remote_whitelist', null);
|
||||
$img->setRemoteHostWhitelist($whitelist);
|
||||
}
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user