Fix formula string truncated at the end.

Wrong use of substr() in commit 453f8f1821 makes
formula string truncated at the end.

Signed-off-by: Toha <tohenk@yahoo.com>
This commit is contained in:
Toha 2018-02-08 10:23:23 +07:00 committed by Adrien Crivelli
parent 02e176197a
commit 38b90715e2
1 changed files with 1 additions and 1 deletions

View File

@ -563,7 +563,7 @@ class Parser
private function convertString($string)
{
// chop away beggining and ending quotes
$string = substr($string, 1, -2);
$string = substr($string, 1, -1);
if (strlen($string) > 255) {
throw new WriterException('String is too long');
}