Advertisement:

Author Topic: how to solve homoglyph issue?  (Read 1796 times)

Offline shawnb61

  • Developer
  • Sophist Member
  • *
  • Posts: 1,346
    • sbulen on GitHub
Re: how to solve homoglyph issue?
« Reply #20 on: December 09, 2018, 05:59:13 PM »
An ASCII restriction is not a good solution. 

However, there are libraries/approaches out there to test for homoglyphs.  (I think it's even native to .js.) 

I do think that a homoglyph check would be a useful feature.  The sample provided above is valid:  "Mіau!" and "Miau!" are two distinct names, and are not caught by the existing SMF dupe prevention.   

There are valid reasons we prevent dupes, and it would be proper to close such loopholes. 


EDIT: I logged a feature request here:
https://www.simplemachines.org/community/index.php?topic=563911.0
Address the process rather than the outcome.  Then, the outcome becomes more likely.   - Fripp

Offline Arantor

  • Resident Overthinker
  • SMF Friend
  • SMF Legend
  • *
  • Posts: 71,422
    • StoryBB/StoryBB on GitHub
Re: how to solve homoglyph issue?
« Reply #21 on: December 09, 2018, 06:22:14 PM »
Except that this is a huge matter of debate: how far do you go? If you follow the very link in your example, you potentially consider 'cj' as a homoglyph of 'g'. How far down that road do you possibly go?
Don’t try to tell me that some power can corrupt a person. You haven’t had enough to know what it’s like.

No good deed goes unpunished / No act of charity goes unresented.