Skip to content

Fixed replace modifier by converting encoding if needed#740

Merged
wisskid merged 1 commit intosmarty-php:support/3.1from
AnrDaemon:fix-issue-549-v3
Jul 15, 2022
Merged

Fixed replace modifier by converting encoding if needed#740
wisskid merged 1 commit intosmarty-php:support/3.1from
AnrDaemon:fix-issue-549-v3

Conversation

@AnrDaemon
Copy link
Copy Markdown
Contributor

mb_split will fail if $pattern or $string contains byte sequences not valid for mb_regex_encoding().

Convert both strings and set regex encoding before calling mb_split() if needed.

Fixes #549

`mb_split` will fail if `$pattern` or `$string` contains byte sequences not valid for `mb_regex_encoding()`.

Convert both strings and set regex encoding before calling `mb_split()` if needed.

Fixes smarty-php#549
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants