Page MenuHomePhabricator

Reject nonminmal representations of UTF8 at the beginning of the 3-byte BMP range
ClosedPublic

Authored by epriestley on Feb 23 2014, 8:35 PM.
Tags
None
Referenced Files
F18952691: D8313.diff
Wed, Nov 12, 6:23 AM
F18827508: D8313.id19774.diff
Fri, Oct 24, 10:32 AM
F18818183: D8313.diff
Oct 21 2025, 9:54 PM
F18815486: D8313.id.diff
Oct 21 2025, 2:25 AM
F18726607: D8313.id.diff
Sep 30 2025, 6:46 AM
F18700494: D8313.diff
Sep 27 2025, 3:17 PM
F18677463: D8313.id19779.diff
Sep 25 2025, 9:06 PM
F18626364: D8313.diff
Sep 16 2025, 1:08 AM
Subscribers

Details

Summary

Ref T1191. These byte ranges (\xE0\x80\x80 through \xE0\x9F\xBF) are alternate representations of characters with a different preferred minimal representation. MySQL and mbstring both reject them, and we should too.

Test Plan

Ran unit tests.

Diff Detail

Lint
Lint Skipped
Unit
Tests Skipped

Event Timeline

arice added inline comments.
src/utils/utf8.php
126

*like

src/utils/utf8.php
126

o why thank you

epriestley updated this revision to Unknown Object (????).Feb 23 2014, 11:24 PM
  • "lik" -> "like"