mirror of
https://github.com/Combodo/iTop.git
synced 2026-04-24 02:58:43 +02:00
N°4360 Security hardening
This commit is contained in:
@@ -1955,7 +1955,16 @@ abstract class DBObject implements iDisplay
|
||||
}
|
||||
if (!$oAtt->CheckFormat($toCheck))
|
||||
{
|
||||
return "Wrong format [$toCheck]";
|
||||
$sErrorMessage = 'Wrong format';
|
||||
if ($oAtt instanceof AttributeDBFieldVoid) {
|
||||
$sErrorMessage .= " [$toCheck]";
|
||||
}
|
||||
if ($oAtt instanceof AttributeBlob) {
|
||||
/** @var $toCheck \ormDocument */
|
||||
$sErrorMessage .= ' ['.$toCheck->GetFileName().']';
|
||||
}
|
||||
|
||||
return $sErrorMessage;
|
||||
}
|
||||
}
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user