1
0
mirror of https://github.com/Intervention/image.git synced 2025-08-11 00:14:03 +02: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

View File

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