mirror of
https://github.com/Combodo/iTop.git
synced 2026-04-24 11:08:45 +02:00
N°4360 Security hardening
This commit is contained in:
@@ -7351,6 +7351,11 @@ class AttributeImage extends AttributeBlob
|
||||
{
|
||||
if ($value instanceof ormDocument && !$value->IsEmpty())
|
||||
{
|
||||
if ($value->GetMimeType() === 'image/svg+xml') {
|
||||
// N°4360 SVG can contain JavaScript...
|
||||
return false;
|
||||
}
|
||||
|
||||
return ($value->GetMainMimeType() == 'image');
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user