Currently (in 3.0) it is required to call utf8_normalize_nfc() on each unicode request string. At the same time we are supplying request_var() with the information, whether it is unicode or not. In code that means:
- Code: Select all
$input = utf8_normalize_nfc(request_var('input', '', true));
Not only is it a lot to type, it is redundant. You are supplying the same information twice. It would be easier to just do:
- Code: Select all
$input = request_var('input', '', true);
And moving the utf8_normalize_nfc() call into request_var(), occurring when the $multibyte argument is set to true.
Would there be any reason for this not to be feasible? One possible issue would be future bug fix merging, but considering request_var is being totally rewritten anyway it may not make much difference.




