Page MenuHomePhorge

D25567.1736968299.diff
No OneTemporary

D25567.1736968299.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
Wed, Jan 15, 19:11 (2 w, 19 h ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1109338
Default Alt Text
D25567.1736968299.diff (788 B)

Event Timeline