Hyphen = bad character

Phoca Guestbook - creating guestbooks in Joomla! CMS
ankianak66
Phoca Newbie
Phoca Newbie
Posts: 2
Joined: 04 Jun 2009, 10:37

Hyphen = bad character

Post 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?
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 47810
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Hyphen = bad character

Post 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
If you find Phoca extensions useful, please support the project
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 47810
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Hyphen = bad character

Post by Jan »

Hi, which Phoca Guestbook version do you use now?

Jan
If you find Phoca extensions useful, please support the project
Post Reply