1
0
mirror of https://github.com/Intervention/image.git synced 2025-08-18 11:41:17 +02:00

Fixed a bug where file path strings would be evaluated as Base64-data

This commit is contained in:
Jack W-H
2017-04-23 15:47:59 +01:00
committed by GitHub
parent 5c92ea4503
commit 15ef0b00df

View File

@@ -329,12 +329,12 @@ abstract class AbstractDecoder
case $this->isDataUrl():
return $this->initFromBinary($this->decodeDataUrl($this->data));
case $this->isBase64():
return $this->initFromBinary(base64_decode($this->data));
case $this->isFilePath():
return $this->initFromPath($this->data);
case $this->isBase64():
return $this->initFromBinary(base64_decode($this->data));
default:
throw new Exception\NotReadableException("Image source not readable");
}