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
Unknown Object (File)
Fri, Dec 13, 11:44 PM
Unknown Object (File)
Mon, Dec 9, 7:56 PM
Unknown Object (File)
Mon, Dec 9, 7:53 AM
Unknown Object (File)
Fri, Dec 6, 4:38 PM
Unknown Object (File)
Thu, Nov 28, 3:25 AM
Unknown Object (File)
Tue, Nov 26, 10:03 AM
Unknown Object (File)
Nov 24 2024, 8:28 PM
Unknown Object (File)
Nov 24 2024, 7:49 PM
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"