Uh oh!
There was an error while loading. Please reload this page.
Fix GH-15824 mb_detect_encoding() invalid "UTF8" - #15829
Conversation
There was a problem hiding this comment.
Please add more test cases such that both mime names and aliases are tested.
Uh oh!
There was an error while loading. Please reload this page.
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
98678e6CompareThere was a problem hiding this comment.
You still need strncasecmp here too.
There was a problem hiding this comment.
Nice catch, thanks.
d3c83d1 to
439a76eCompareI 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
d005317Comparealexdowad
commented
Sep 11, 2024
@youkidearitai Indeed, thanks. It seems you are a committer for |
youkidearitai
commented
Sep 11, 2024
@alexdowad Thank you for confirmed. Add my account for CODEOWNERS file is already applied in #14744 . Thank you. |
alexdowad
commented
Sep 11, 2024
@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.