mirror of
https://github.com/Intervention/image.git
synced 2025-09-01 01:51:43 +02:00
Compare to normalized base64 data to avoid false negatives
This commit is contained in:
@@ -262,7 +262,7 @@ abstract class AbstractDecoder
|
||||
return false;
|
||||
}
|
||||
|
||||
return base64_encode(base64_decode($this->data)) === $this->data;
|
||||
return base64_encode(base64_decode($this->data)) === str_replace(["\n", "\r", "\t", " "], '', $this->data);
|
||||
}
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user