1
0
mirror of https://github.com/Intervention/image.git synced 2025-01-17 12:18:14 +01:00

Merge pull request #722 from vlakoff/isBase64

Add a code comment to prevent future regressions
This commit is contained in:
Oliver Vogel 2017-06-06 18:32:49 +02:00 committed by GitHub
commit 8b0ca67c3a

View File

@ -332,6 +332,7 @@ abstract class AbstractDecoder
case $this->isFilePath():
return $this->initFromPath($this->data);
// isBase64 has to be after isFilePath to prevent false positives
case $this->isBase64():
return $this->initFromBinary(base64_decode($this->data));