Apply patch for bug #2261: Excel 2002 crashes when use write() with @ as first value of the text in behalf of progi1984

git-svn-id: https://svn.php.net/repository/pear/packages/Spreadsheet_Excel_Writer/trunk@286925 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
Christian Weiske 2009-08-08 07:02:20 +00:00
parent 8b65ef5c61
commit bcb70905c5
2 changed files with 4 additions and 5 deletions

View File

@ -1171,9 +1171,6 @@ class Spreadsheet_Excel_Writer_Worksheet extends Spreadsheet_Excel_Writer_BIFFwr
} elseif (preg_match("/^=/", $token)) {
// Match formula
return $this->writeFormula($row, $col, $token, $format);
} elseif (preg_match("/^@/", $token)) {
// Match formula
return $this->writeFormula($row, $col, $token, $format);
} elseif ($token == '') {
// Match blank
return $this->writeBlank($row, $col, $format);

View File

@ -26,7 +26,7 @@ http://pear.php.net/dtd/package-2.0.xsd">
<active>yes</active>
</developer>
<date>2009-08-06</date>
<date>2009-08-08</date>
<version>
<release>0.9.2</release><!-- last release was 0.9.1 -->
@ -41,7 +41,9 @@ http://pear.php.net/dtd/package-2.0.xsd">
<notes>
- Fix Bug #10399: Fatal error when closing workbook with no worksheets.
- Fix Bug #2405: Text concat operator & truncate formula [progi1984]
- Fix Bug #2405: Text concat operator &amp; truncate formula [progi1984]
- Fix Bug #2261: Excel 2002 crashes when use write() with @ as
first value of the text [progi1984]
</notes>
<contents>