Page MenuHomePhabricator

String operations are not multibyte safe
Closed, ResolvedPublic

Description

The AbuseFilter functions substr, strpos, and str_replace do not operate correctly on multibyte UTF-8 characters.


Version: unspecified
Severity: normal

Details

Reference
bz19333

Event Timeline

bzimport raised the priority of this task from to Low.Nov 21 2014, 10:38 PM
bzimport added a project: AbuseFilter.
bzimport set Reference to bz19333.

(Batch change)

These are low-priority miniprojects that I can mop up at some point when I'm doing general code work as opposed to working on a specific projects.

Fixed strpos and substr in r54092. str_replace is multibyte-safe.