Fix GH-15824 mb_detect_encoding() invalid "UTF8"#15829
Fix GH-15824 mb_detect_encoding() invalid "UTF8"#15829youkidearitai merged 1 commit intophp:masterfrom
Conversation
There was a problem hiding this comment.
This check shouldn't be necessary
There was a problem hiding this comment.
Thanks. Removed.
There was a problem hiding this comment.
Please add more test cases such that both mime names and aliases are tested.
There was a problem hiding this comment.
This should use strncasecmp and the same == '\0' check that I suggested below.
There was a problem hiding this comment.
Thank you very much for pretty code. Fixed.
21970ab to
98678e6
Compare
There was a problem hiding this comment.
You still need strncasecmp here too.
There was a problem hiding this comment.
Nice catch, thanks.
d3c83d1 to
439a76e
Compare
I fixed from strcasecmp to strncasecmp. However, strncasecmp is specify size to php#3 parameter. Hence, Add check length to mime and aliases. Co-authored-by: Niels Dossche <7771979+nielsdos@users.noreply.github.com>
439a76e to
d005317
Compare
|
@youkidearitai Indeed, thanks. It seems you are a committer for |
|
@alexdowad Thank you for confirmed. Add my account for CODEOWNERS file is already applied in #14744 . Thank you. |
|
@youkidearitai Thanks very much 👍 In future, it will be appreciated if you can CC me on such changes. As a suggestion, if you want to list yourself as a 2nd mbstring maintainer in EXTENSIONS, I have no objection to that. |
Okay. I will do in next time.
Thank you. I will add myself for EXTENSIONS. |
I fixed from strcasecmp to strncasecmp.
However, strncasecmp is specify size to 3rd parameter.
Hence, Add check strlen to mime and aliases.