From: Emmanuel Lacour Date: Wed, 11 May 2011 15:06:54 +0000 (+0200) Subject: Use ->write_string instead of ->write to make sure text starting with "=" are not... X-Git-Tag: 0.07~2 X-Git-Url: http://git.home-dn.net/?p=manu%2FRT-Extension-SearchResults-XLS.git;a=commitdiff_plain;h=19588cdc362c5d715771694e30d0e763e6e93434 Use ->write_string instead of ->write to make sure text starting with "=" are not interpreted as formulas (close: #68116) --- 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++;