NetTalk Central

Author Topic: Remove diacritics directly from webhandler  (Read 3797 times)

Robert Iliuta

  • Sr. Member
  • ****
  • Posts: 472
    • View Profile
    • Email
Remove diacritics directly from webhandler
« on: December 05, 2014, 04:52:50 AM »
Hallo,


I would like to remove diacritics if someone think to write. Very easy to do with StringTheory on validate Update Form. But then I saw that I have to repeat this for a lot of forms.. and it's a lot of work. Can I just test for diacritics somewhere on WebHandler embed? to check the incoming packet and if this is coming from a form and has diacritics inside to replace and continue. Is this possible?

Thank you for any help.

Regards,
Robert 

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11250
    • View Profile
Re: Remove diacritics directly from webhandler
« Reply #1 on: December 07, 2014, 09:39:27 PM »
Hi Robert,

I haven't tried it, but I suspect you could add code to WebHandler, _CleanIncoming method. Before the parent call.

This method is called when incoming form fields are parsed from the request and placed in the Value queue. It's usually used to check for unwanted HTML in the incoming value, but you can replace other things there as well if you like.

cheers
Bruce