Skip to content

Commit 6fe34e3

Browse files
authored
Bug fix: strtr using empty string
The php function strtr doesn't support empty strings as replacement. To delete a character str_replace is required.
1 parent 7743802 commit 6fe34e3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/PhpWord/Shared/PCLZip/pclzip.lib.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1597,7 +1597,7 @@ public function privParseOptions(&$p_options_list, $p_size, &$v_result_list, $v_
15971597
if (is_string($p_options_list[$i + 1])) {
15981598

15991599
// ----- Remove spaces
1600-
$p_options_list[$i + 1] = strtr($p_options_list[$i + 1], ' ', '');
1600+
$p_options_list[$i + 1] = str_replace(' ', '', $p_options_list[$i + 1]);
16011601

16021602
// ----- Parse items
16031603
$v_work_list = explode(",", $p_options_list[$i + 1]);

0 commit comments

Comments
 (0)