Skip to content

Commit c6c25d1

Browse files
authored
Merge pull request #2432 from spl1nes/patch-1
Bug fix: strtr using empty string
2 parents 85d200a + 6fe34e3 commit c6c25d1

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)