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)
Wed, Apr 17, 11:30 AM
Unknown Object (File)
Tue, Apr 9, 6:39 AM
Unknown Object (File)
Sun, Apr 7, 8:09 AM
Unknown Object (File)
Sun, Apr 7, 12:55 AM
Unknown Object (File)
Wed, Apr 3, 5:44 PM
Unknown Object (File)
Sat, Mar 30, 3:05 AM
Unknown Object (File)
Mon, Mar 25, 6:06 PM
Unknown Object (File)
Mon, Mar 25, 6:06 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

Repository
rPHU libphutil
Branch
bpm3
Lint
Lint Passed
Unit
Tests Passed

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"