Question about CVE-2024-2961 PHP Bug (iconv issue)
I've seen a bunch of news about this bug, does it affect applications that do not use the iconv() function?
I've seen a bunch of news about this bug, does it affect applications that do not use the iconv() function?
I'm translating user-submitted strings from UTF-8 to ASCII-Printable: $str = 'Thê qúïck 😈 brõwn fõx júmps?😈 Óvér thé lázy dõg?😈'; $out = iconv('UTF-8', 'ASCII//TRANSLIT', $str); var_dump($out); $out = 'The quick ? brown fox jumps?? Over the lazy dog??'; I want…
I have text that was converted between two encodings (non UTF-8) and then saved as UTF-8. How to restore the encoding using php? Everything works fine if we just need to convert the text from any encoding to UTF-8: $text…
For User Agents and Image EXIF data, my system tries to convert any UTF-8 characters, using iconv(). However, sometimes I get the following error: PHP Warning [8]: iconv(): Detected an illegal character in input string For examples like these: iconv('UTF-8',…