Skip to content

Commit 52243b2

Browse files
committed
Merge branch 'security/4.4.9-releng' into 4.4.9-releng
2 parents f56d7da + 2f5798f commit 52243b2

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

share/html/Elements/TSVExport

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -122,6 +122,8 @@ while (my $row = $Collection->Next) {
122122
$val =~ s/(?:\n|\r)+/ /g; $val =~ s{\t}{ }g;
123123
$val = $no_html->scrub($val);
124124
$val = HTML::Entities::decode_entities($val);
125+
# To prevent injection, add a leading space to make sure excel-ish applications treat it like a literal
126+
$val =~ s/^(?=-|\+|=|\@|")/ /;
125127
$val;
126128
} @$col)."\n");
127129
}

0 commit comments

Comments
 (0)