Skip to content

Commit

Permalink
Fix bug in phalcon_escape_multi() introduced in 1ce094c
Browse files Browse the repository at this point in the history
(cherry picked from commit e12bfdd)
  • Loading branch information
sjinks committed Jul 25, 2013
1 parent fab2bec commit 8a13e56
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ext/kernel/filter.c
Original file line number Diff line number Diff line change
Expand Up @@ -257,13 +257,13 @@ void phalcon_escape_multi(zval *return_value, zval *param, const char *escape_ch
/**
* Alphanumeric characters are not escaped
*/
if (isalnum(value)) {
if (value < 256 && isalnum(value)) {
smart_str_appendc(&escaped_str, (unsigned char) value);
continue;
}

/**
* Chararters in the whitelist are leave as they are
* Chararters in the whitelist are left as they are
*/
if (use_whitelist) {
switch (value) {
Expand Down

0 comments on commit 8a13e56

Please sign in to comment.