Page 1 of 1

Hyphen = bad character

Posted: 04 Jun 2009, 11:07
by ankianak66
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?

Re: Hyphen = bad character

Posted: 19 Jun 2009, 15:11
by Jan
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

Re: Hyphen = bad character

Posted: 26 Jan 2017, 18:55
by Jan
Hi, which Phoca Guestbook version do you use now?

Jan