summaryrefslogtreecommitdiff
path: root/httemplate/search/elements/search-xls.html
diff options
context:
space:
mode:
authorMark Wells <mark@freeside.biz>2013-06-19 14:56:25 -0700
committerMark Wells <mark@freeside.biz>2013-06-19 14:56:25 -0700
commit03dfd875f74410d283060a4e54eaedf845bfcd39 (patch)
treeb798f5bf4de51be5f7a32bf869d54c20d198ec89 /httemplate/search/elements/search-xls.html
parent67e981bedc57f0834bdb43069366e6026c058705 (diff)
improve accuracy of historical package counts, #8461
Diffstat (limited to 'httemplate/search/elements/search-xls.html')
-rw-r--r--httemplate/search/elements/search-xls.html5
1 files changed, 4 insertions, 1 deletions
diff --git a/httemplate/search/elements/search-xls.html b/httemplate/search/elements/search-xls.html
index bc844a579..8334497d2 100644
--- a/httemplate/search/elements/search-xls.html
+++ b/httemplate/search/elements/search-xls.html
@@ -32,7 +32,10 @@ my $XLS = new IO::Scalar \$data;
my $workbook = $format->{class}->new($XLS)
or die "Error opening Excel file: $!";
-my $worksheet = $workbook->add_worksheet(substr($opt{'title'},0,31));
+my $title = $opt{'title'};
+$title =~ s/[\[\]\:\*\?\/\/]//g;
+$title = substr($title, 0, 31);
+my $worksheet = $workbook->add_worksheet($title);
$worksheet->protect();