Author Topic: Swedish Åå Ää Öö  (Read 3310 times)

Offline RuneBlixt

  • Newbie
  • *****
  • Posts: 3
  • Karma: +0/-0
Swedish Åå Ää Öö
« on: November 06, 2012, 11:46:40 AM »
phpEnter Web Hosting
When members sign up do I need to use Åå Ää Öö for Swedish members. Is it possible to arrange?
« Last Edit: January 01, 1970, 03:00:00 AM by Guest »

Offline Jeremy

  • Full Member
  • *****
  • Posts: 238
  • Karma: +1/-0
Re: Swedish Åå Ää Öö
« Reply #1 on: November 06, 2012, 06:53:35 PM »
signup.php:

Remove this part of code or comment it:

Code: [Select]
if(preg_match('#[^A-Za-z0-9]#',$username)) {
echo "<div id='error'>$lang[ONLY] <a href='javascript:history.go(-1)'>$lang[BOOKBACK] </a></div></div>";
               $smarty->display('footer.php');
die();
}
if(preg_match('#[^A-Za-z0-9]#',$password)) {
echo "<div id='error'>$lang[ONLY] <a href='javascript:history.go(-1)'>$lang[BOOKBACK] </a></div></div>";
               $smarty->display('footer.php');
die();
}

signin.php

replace this code:

Code: [Select]
if(preg_match('#[^A-Za-z0-9-]#',$name)) {
echo "Illegal Characters";
die();
}

with:

Code: [Select]
if(preg_match("/%/",$name)) {
echo "<div id='error'>$lang[INVALIDCHAR]  '%' </div></div>";
die();
}
if(preg_match("/;/",$name)) {
echo "<div id='error'>$lang[INVALIDCHAR] ';' </div></div>";
die();
}
if(preg_match("/</",$name)) {
echo "<div id='error'>$lang[INVALIDCHAR] '<' </div></div>";
die();
}
if(preg_match("/\[/",$name)) {
echo "<div id='error'>$lang[INVALIDCHAR] '[' </div></div>";
die();
}
:)
« Last Edit: January 01, 1970, 03:00:00 AM by Guest »
Social Bookmarking Script markerpaper.com

Offline alexa

  • Administrator
  • Full Member
  • *****
  • Posts: 255
  • Karma: +0/-0
Re: Swedish Åå Ää Öö
« Reply #2 on: November 07, 2012, 11:26:41 AM »
This fix will be included in the next release [4.2.1.]
« Last Edit: January 01, 1970, 03:00:00 AM by Guest »

Offline RuneBlixt

  • Newbie
  • *****
  • Posts: 3
  • Karma: +0/-0
Re: Swedish Åå Ää Öö
« Reply #3 on: November 07, 2012, 12:02:38 PM »
Thanks, works fine now // Rune
« Last Edit: January 01, 1970, 03:00:00 AM by Guest »