πŸ‡ΊπŸ‡ΈUnited States @ibbwebguy

Account created on 3 January 2008, about 17 years ago
#

Recent comments

πŸ‡ΊπŸ‡ΈUnited States ibbwebguy

Rerolled the 10.3 patch from #51 to include the correct unicode regex.

πŸ‡ΊπŸ‡ΈUnited States ibbwebguy

I believe the order of unicode characters is wrong and will result in unwanted characters being valid. The correct order should be:

$identifier = preg_replace('/[^\x{002D}\x{002E}\x{002F}\x{0030}-\x{0039}\x{003A}\x{0040}\x{0041}-\x{005A}\x{005F}\x{0061}-\x{007A}\x{00A1}-\x{FFFF}]/u', '', $identifier);

Alternately, the syntax could be shortened to the following, but then the alphanumeric ranges would not be specifically listed.
$identifier = preg_replace('/[^\x{002D}-\x{003A}\x{0040}-\x{005A}\x{005F}\x{0061}-\x{007A}\x{00A1}-\x{FFFF}]/u', '', $identifier);

Production build 0.71.5 2024