[php-src] PR #15829: Fix GH-15824 mb_detect_encoding() invalid "UTF8"
| From: | youkidearitai | Date: | Tue, 10 Sep 2024 17:40:32 +0000 |
| Subject: | [php-src] PR #15829: Fix GH-15824 mb_detect_encoding() invalid "UTF8" | ||
| Groups: | php.git-pulls | ||
| Request: | Send a blank email to git-pulls+get-28520@lists.php.net to get a copy of this message | ||
Pull Request: https://github.com/php/php-src/pull/15829
Author: youkidearitai
I fixed from strcasecmp to strncasecmp.
However, strncasecmp is specify size to #3 parameter.
Hence, Add check strlen to mime and aliases.