diff options
author | Nikita Popov <nikic@php.net> | 2015-03-14 09:18:50 +0100 |
---|---|---|
committer | Nikita Popov <nikic@php.net> | 2015-03-14 09:18:50 +0100 |
commit | 547d3879738dd6b8cc59aaa91081bb71289614f9 (patch) | |
tree | fbe738b4d8234f949dc8b4b5facc745fe112ba43 /ext/filter/sanitizing_filters.c | |
parent | 7409fd4bf73912b0bf3e5fb2e9bf613cc302c735 (diff) | |
parent | 846c8059e60b1c5ac918b2036c15b490971eb6e3 (diff) | |
download | php-git-547d3879738dd6b8cc59aaa91081bb71289614f9.tar.gz |
Merge branch 'PHP-5.6'
Diffstat (limited to 'ext/filter/sanitizing_filters.c')
-rw-r--r-- | ext/filter/sanitizing_filters.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/filter/sanitizing_filters.c b/ext/filter/sanitizing_filters.c index 43241cc1ef..73bf92ed0b 100644 --- a/ext/filter/sanitizing_filters.c +++ b/ext/filter/sanitizing_filters.c @@ -123,7 +123,7 @@ static void php_filter_strip(zval *value, zend_long flags) buf = zend_string_alloc(Z_STRLEN_P(value) + 1, 0); c = 0; for (i = 0; i < Z_STRLEN_P(value); i++) { - if ((str[i] > 127) && (flags & FILTER_FLAG_STRIP_HIGH)) { + if ((str[i] >= 127) && (flags & FILTER_FLAG_STRIP_HIGH)) { } else if ((str[i] < 32) && (flags & FILTER_FLAG_STRIP_LOW)) { } else if ((str[i] == '`') && (flags & FILTER_FLAG_STRIP_BACKTICK)) { } else { |