com php-src: added check for forbidden encodings: ext/mbstring/mbstring.c

From: Date: Sat, 07 Mar 2015 17:03:43 +0000
Subject: com php-src: added check for forbidden encodings: ext/mbstring/mbstring.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-93713@lists.php.net to get a copy of this message
Commit: c55dea018f74212e74008270b2e5afe7469875da Author: Masaki Kagaya <masakielastic@gmail.com> Thu, 19 Feb 2015 14:37:12 +0900 Parents: f008db6f4c72050b163b4e45ece5d31db5175578 Branches: master Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=c55dea018f74212e74008270b2e5afe7469875da Log: added check for forbidden encodings Changed paths: M ext/mbstring/mbstring.c Diff: diff --git a/ext/mbstring/mbstring.c b/ext/mbstring/mbstring.c index 6dfc669...e075340 100644 --- a/ext/mbstring/mbstring.c +++ b/ext/mbstring/mbstring.c @@ -4615,6 +4615,32 @@ static inline long php_mb_ord(const char* str, size_t str_len, const char* enc) || no_enc == mbfl_no_encoding_utf32le ) { supported = true; + } else if (no_enc == mbfl_no_encoding_pass + || no_enc == mbfl_no_encoding_auto + || no_enc == mbfl_no_encoding_wchar + || no_enc == mbfl_no_encoding_byte2be + || no_enc == mbfl_no_encoding_byte2le + || no_enc == mbfl_no_encoding_byte4be + || no_enc == mbfl_no_encoding_byte4le + || no_enc == mbfl_no_encoding_base64 + || no_enc == mbfl_no_encoding_uuencode + || no_enc == mbfl_no_encoding_html_ent + || no_enc == mbfl_no_encoding_qprint + || no_enc == mbfl_no_encoding_utf7 + || no_enc == mbfl_no_encoding_utf7imap + || no_enc == mbfl_no_encoding_2022kr + || no_enc == mbfl_no_encoding_jis + || no_enc == mbfl_no_encoding_2022jp + || no_enc == mbfl_no_encoding_2022jpms + || no_enc == mbfl_no_encoding_jis_ms + || no_enc == mbfl_no_encoding_2022jp_2004 + || no_enc == mbfl_no_encoding_2022jp_kddi + || no_enc == mbfl_no_encoding_cp50220 + || no_enc == mbfl_no_encoding_cp50220raw + || no_enc == mbfl_no_encoding_cp50221 + || no_enc == mbfl_no_encoding_cp50222 + ) { + supported = false; } if (!supported) {

« previous php.cvs (#93713) next »