Skip to content

Commit

Permalink
Item9924: fixing xls files not being indexed
Browse files Browse the repository at this point in the history
git-svn-id: http://svn.foswiki.org/trunk/StringifierContrib@9815 0b4bb1d4-4e5a-0410-9cc4-b2b747904278
  • Loading branch information
MichaelDaum authored and MichaelDaum committed Nov 1, 2010
1 parent 8f7349d commit b1005fa
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions lib/Foswiki/Contrib/StringifierContrib/Plugins/XLSX.pm
Expand Up @@ -30,16 +30,9 @@ sub stringForFile {

try {
require Spreadsheet::XLSX;
$book = Spreadsheet::XLSX->new($file);
} catch Error with {
return '';
}

try {
$book = Spreadsheet::XLSX->new($file);
}
catch Error with {
# file not opened, possibly passworded
return '';
};

return '' unless $book;
Expand Down

0 comments on commit b1005fa

Please sign in to comment.