Hello!
Thanks for a good guestbook!
I have a question about the characters in names. In Sweden where I live it is quite common with hyphens (-) in names, my own name is for example Ann-Cathrin. But it seems like your system doesn´t approve of the hyphen, when I try to send a message with my name I get a message saying that I use incorrect characters. If I take away the - and write AnnCathrin everything is OK.
My questions is if there is a way of adding the hyphen to allowed characters?
Hyphen = bad character
- Jan
- Phoca Hero
- Posts: 48536
- Joined: 10 Nov 2007, 18:23
- Location: Czech Republic
- Contact:
Re: Hyphen = bad character
Hi, see:
if ($username != 0 && eregi( "[\<|\>|\"|\'|\%|\;|\(|\)|\&|\+|\-]", $post['username']))
in components/com_phocaguestbook/controllers/phocaguestbook.php
you can delete the - in this code, so the hyphen will be supported
Jan
if ($username != 0 && eregi( "[\<|\>|\"|\'|\%|\;|\(|\)|\&|\+|\-]", $post['username']))
in components/com_phocaguestbook/controllers/phocaguestbook.php
you can delete the - in this code, so the hyphen will be supported
Jan
If you find Phoca extensions useful, please support the project
- Jan
- Phoca Hero
- Posts: 48536
- Joined: 10 Nov 2007, 18:23
- Location: Czech Republic
- Contact:
Re: Hyphen = bad character
Hi, which Phoca Guestbook version do you use now?
Jan
Jan
If you find Phoca extensions useful, please support the project