Page MenuHomePhorge

D25567.1737994348.diff
No OneTemporary

D25567.1737994348.diff

diff --git a/src/infrastructure/export/format/PhabricatorCSVExportFormat.php b/src/infrastructure/export/format/PhabricatorCSVExportFormat.php
--- a/src/infrastructure/export/format/PhabricatorCSVExportFormat.php
+++ b/src/infrastructure/export/format/PhabricatorCSVExportFormat.php
@@ -48,11 +48,11 @@
// like it might be too tempting for Excel to ignore, mangle the value
// to dissuade remote code execution. See T12800.
- if (preg_match('/^\s*[+=@-]/', $value)) {
+ if ($value && preg_match('/^\s*[+=@-]/', $value)) {
$value = '(!) '.$value;
}
- if (preg_match('/\s|,|\"/', $value)) {
+ if ($value && preg_match('/\s|,|\"/', $value)) {
$value = str_replace('"', '""', $value);
$value = '"'.$value.'"';
}

File Metadata

Mime Type
text/plain
Expires
Mon, Jan 27, 16:12 (2 d, 22 h ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1109338
Default Alt Text
D25567.1737994348.diff (788 B)

Event Timeline