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

Merge pull request #718 from JackWH/patch-1

Bugfix: File path strings are always evaluated as Base64-data
This commit is contained in:
Oliver Vogel
2017-04-23 20:38:30 +02:00
committed by GitHub

View File

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