1
0
mirror of https://github.com/Intervention/image.git synced 2025-08-19 12:11:26 +02:00

Add a code comment to prevent future regressions

This commit is contained in:
vlakoff
2017-04-30 17:00:04 +02:00
parent b29b7946d6
commit e1b0bc1492

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));