Skip to content
Snippets Groups Projects

Fix check if image is external (not local)

1 file
+ 1
1
Compare changes
  • Side-by-side
  • Inline
@@ -125,7 +125,7 @@ class ImageStylesProvider implements ImageStylesProviderInterface {
];
// Sites with external images cannot afford to download the image to the
// webserver in order to inspect the image dimensions.
if ($this->streamWrapperManager->getViaScheme(StreamWrapperManager::getScheme($uri))->getType() & ~StreamWrapperInterface::LOCAL_NORMAL) {
if (!($this->streamWrapperManager->getViaScheme(StreamWrapperManager::getScheme($uri))->getType() & StreamWrapperInterface::LOCAL)) {
return $info;
}
$image = $this->imageFactory->get($uri);
Loading