From 19588cdc362c5d715771694e30d0e763e6e93434 Mon Sep 17 00:00:00 2001 From: Emmanuel Lacour Date: Wed, 11 May 2011 17:06:54 +0200 Subject: [PATCH] Use ->write_string instead of ->write to make sure text starting with "=" are not interpreted as formulas (close: #68116) --- html/Search/Results.xls | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/html/Search/Results.xls b/html/Search/Results.xls index c4600c6..fb081f0 100644 --- a/html/Search/Results.xls +++ b/html/Search/Results.xls @@ -119,7 +119,7 @@ $r->content_type('application/vnd.ms-excel'); } my $ws_col = 0; foreach my $ws_val ( @header ) { - $worksheet->write(0, $ws_col, $ws_val); + $worksheet->write_string(0, $ws_col, $ws_val); $ws_col++; } } @@ -154,7 +154,7 @@ while ( my $Ticket = $Tickets->Next()) { my $ws_col = 0; foreach my $ws_val ( @row ) { - $worksheet->write($ws_row, $ws_col, $ws_val); + $worksheet->write_string($ws_row, $ws_col, $ws_val); $ws_col++; } $ws_row++; -- 2.11.0