diff options
author | Gustavo André dos Santos Lopes <cataphract@php.net> | 2010-10-27 18:13:25 +0000 |
---|---|---|
committer | Gustavo André dos Santos Lopes <cataphract@php.net> | 2010-10-27 18:13:25 +0000 |
commit | e69b1ff2c43fbfd672097e9f8b25dead81f34ccf (patch) | |
tree | 50dd9955cf078bbeefd120d86d09aec99c9db7cd /ext/standard/html.h | |
parent | da400e7500e236a332b8104b373e60e842bbd63e (diff) | |
download | php-git-e69b1ff2c43fbfd672097e9f8b25dead81f34ccf.tar.gz |
- Fixed bug #49687 (utf8_decode vulnerabilities and deficiencies in the number
of reported malformed sequences). (Gustavo)
#Made a public interface for get_next_char/utf-8 in trunk to use in utf8_decode.
#In PHP 5.3, trunk's get_next_char was copied to xml.c because 5.3's
#get_next_char is different and is not prepared to recover appropriately from
#errors.
Diffstat (limited to 'ext/standard/html.h')
-rw-r--r-- | ext/standard/html.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/ext/standard/html.h b/ext/standard/html.h index 4915e171cb..8d9efc406e 100644 --- a/ext/standard/html.h +++ b/ext/standard/html.h @@ -57,5 +57,6 @@ PHP_FUNCTION(get_html_translation_table); PHPAPI char *php_escape_html_entities(unsigned char *old, size_t oldlen, size_t *newlen, int all, int flags, char *hint_charset TSRMLS_DC); PHPAPI char *php_escape_html_entities_ex(unsigned char *old, size_t oldlen, size_t *newlen, int all, int flags, char *hint_charset, zend_bool double_encode TSRMLS_DC); PHPAPI char *php_unescape_html_entities(unsigned char *old, size_t oldlen, size_t *newlen, int all, int flags, char *hint_charset TSRMLS_DC); +PHPAPI unsigned int php_next_utf8_char(const unsigned char *str, size_t str_len, size_t *cursor, int *status); #endif /* HTML_H */ |