Changes in <HTML> Signup

Issues related to the Login tools of WYSIWYG Web Builder.
Forum rules
PLEASE READ THE FORUM RULES BEFORE YOU POST:
viewtopic.php?f=12&t=1901

MUST READ:
http://www.wysiwygwebbuilder.com/login_basics.html
http://www.wysiwygwebbuilder.com/login_tools.html

TIP:
A lot of information about the login tools can be found in the help/manual.
Also checkout the demo template that is include with the software.
Post Reply
Aris
 
 
Posts: 241
Joined: Wed Aug 28, 2013 9:28 am

Changes in <HTML> Signup

Post by Aris » Mon Nov 20, 2017 8:33 am

Hi.

After converting the Signup form to standard form, I open the <HTML> Signup.

I see and this piece of code:

Code: Select all

else
   if (!preg_match("/^[A-Za-z0-9_!@$.' &]{1,50}$/", $newfullname))
   {
Because this code does not receive Greek language characters, may I replace --in the <HTML> Signup-- this piece of

Code: Select all

/^[A-Za-z0-9_!@$.' &]{1,50}$/
with a code that receives Greek language characters?

Thank you.

User avatar
Pablo
 
Posts: 19681
Joined: Tue Mar 28, 2006 12:00 pm
Location: Europe
Contact:

Re: Changes in <HTML> Signup

Post by Pablo » Mon Nov 20, 2017 8:45 am

Yes, you can replace this code with your own regular expression.
However be aware for security risks. If you allow more characters then the script may become vulnerable for 'code injection'.

Aris
 
 
Posts: 241
Joined: Wed Aug 28, 2013 9:28 am

Re: Changes in <HTML> Signup

Post by Aris » Mon Nov 20, 2017 8:50 am

Thank you, Pablo.

I will find the regular expression, and I will ask you again.

Aris
 
 
Posts: 241
Joined: Wed Aug 28, 2013 9:28 am

Re: Changes in <HTML> Signup

Post by Aris » Mon Nov 20, 2017 8:41 pm

Hi again.

I found --for Greek language characters-- the following regular expression:

Code: Select all

/^[\x{37E}-\x{3CF}-9_!@$.' &]{1,30}$/u

In my opinion it is good to maintain the second part

Code: Select all

-9_!@$.' &]{1,30}$
as in <HTML> Signup.
Also, I added the u at the end, for Unicode.

In the Form > Settings > General > Accept charset I must choose UTF-8 or I must let it blank?
I ask this question, because in the preceding code u indicates the Unicode.

Thank you.

User avatar
Pablo
 
Posts: 19681
Joined: Tue Mar 28, 2006 12:00 pm
Location: Europe
Contact:

Re: Changes in <HTML> Signup

Post by Pablo » Mon Nov 20, 2017 9:32 pm

I think you will need to set it to UTF-8

Aris
 
 
Posts: 241
Joined: Wed Aug 28, 2013 9:28 am

Re: Changes in <HTML> Signup

Post by Aris » Tue Nov 21, 2017 4:27 am

Thank you, Pablo.

Post Reply

Who is online

Users browsing this forum: No registered users and 3 guests