Skip to content

Commit

Permalink
Merge pull request #2058 from ruudboon/character-issue
Browse files Browse the repository at this point in the history
Characters escape fix
  • Loading branch information
sergeyklay authored Feb 11, 2020
2 parents 228ed3f + 7e05010 commit 33306d8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion ext/kernel/filter.c
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,7 @@ void zephir_escape_multi(zval *return_value, zval *param, const char *escape_cha
/**
* Alphanumeric characters are not escaped
*/
if (value < 256 && isalnum(value)) {
if (value < 123 && isalnum(value)) {
smart_str_appendc(&escaped_str, (unsigned char) value);
continue;
}
Expand Down
2 changes: 1 addition & 1 deletion kernels/ZendEngine3/filter.c
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,7 @@ void zephir_escape_multi(zval *return_value, zval *param, const char *escape_cha
/**
* Alphanumeric characters are not escaped
*/
if (value < 256 && isalnum(value)) {
if (value < 123 && isalnum(value)) {
smart_str_appendc(&escaped_str, (unsigned char) value);
continue;
}
Expand Down

0 comments on commit 33306d8

Please sign in to comment.