[MEDIA] Fix trying to display file wich is not available locally

This commit is contained in:
Miguel Dantas
2019-06-28 00:18:27 +01:00
committed by Diogo Cordeiro
parent 04d1caff78
commit da82048d77
7 changed files with 59 additions and 33 deletions

View File

@@ -83,6 +83,10 @@ class StoreRemoteMediaPlugin extends Plugin
$remoteUrl = $file->getUrl();
if (empty($remoteUrl)) {
return true;
}
if (!$this->checkWhiteList($remoteUrl) ||
!$this->checkBlackList($remoteUrl)) {
return true;