Skip to content

Commit

Permalink
I think this can fix phalcon/cphalcon#14763
Browse files Browse the repository at this point in the history
  • Loading branch information
ruudboon committed Feb 10, 2020
1 parent 228ed3f commit 7e05010
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 7e05010

Please sign in to comment.