mirror of
https://github.com/Combodo/iTop.git
synced 2026-04-24 02:58:43 +02:00
Update core/csvbulkexport.class.inc.php
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
This commit is contained in:
@@ -271,12 +271,13 @@ EOF
|
|||||||
$sRet = trim($oObj->GetAsCSV($sAttCode), '"');
|
$sRet = trim($oObj->GetAsCSV($sAttCode), '"');
|
||||||
}
|
}
|
||||||
|
|
||||||
// If the option to ignore Excel sanitization is set, return the raw value without sanitization
|
// If the option to ignore Excel sanitization is not set or explicitly set to false, apply sanitization
|
||||||
if (array_key_exists('ignore_excel_sanitization', $this->aStatusInfo) && $this->aStatusInfo['ignore_excel_sanitization'] === true) {
|
if (!(array_key_exists('ignore_excel_sanitization', $this->aStatusInfo)) || $this->aStatusInfo['ignore_excel_sanitization'] === false) {
|
||||||
return $sRet;
|
return ExportHelper::SanitizeField($sRet, $this->aStatusInfo['text_qualifier'] ?? '');
|
||||||
}
|
}
|
||||||
|
|
||||||
return ExportHelper::SanitizeField($sRet, $this->aStatusInfo['text_qualifier'] ?? '');
|
// The option to ignore Excel sanitization is explicitly set to true: return the raw value without sanitization
|
||||||
|
return $sRet;
|
||||||
}
|
}
|
||||||
|
|
||||||
public function GetHeader()
|
public function GetHeader()
|
||||||
|
|||||||
Reference in New Issue
Block a user