in reply to CGI.pm: "Malformed UTF-8 character" in apache's error.log

Because it doesn't look like it will be repaired any time soon... Let's at least warn people.

The -C flag is implemented with the unsafe ":utf8" layer instead of the safe ":encoding(utf8)" layer. Therefore, -CI, -CS, -Ci, -CD, and their numeric equivalents, are potential security risks.

Likewise, -CA is implemented by setting the SvUTF8 flag (like _utf8_on) and should also be avoided.

(Using the ":utf8" layer is safe for output streams.)
  • Comment on Re: CGI.pm: "Malformed UTF-8 character" in apache's error.log