[Fusionforge-commits] r7060 - trunk/gforge/www/account

Roland Mas lolando at libremir.placard.fr.eu.org
Tue Feb 24 11:46:14 CET 2009


Author: lolando
Date: 2009-02-24 11:46:14 +0100 (Tue, 24 Feb 2009)
New Revision: 7060

Modified:
   trunk/gforge/www/account/register.php
Log:
Fixed regexes for country code and time zones (\w can be locale-dependent)

Modified: trunk/gforge/www/account/register.php
===================================================================
--- trunk/gforge/www/account/register.php	2009-02-24 10:23:11 UTC (rev 7059)
+++ trunk/gforge/www/account/register.php	2009-02-24 10:46:14 UTC (rev 7060)
@@ -87,10 +87,10 @@
 if (isset($feedback)) {
 	print "<p><span class=\"error\">$feedback $register_error</span>";
 } 
-if (!isset($timezone) || empty($timezone) || !preg_match('/^[-\w]+$/', $timezone)) {
+if (!isset($timezone) || empty($timezone) || !preg_match('/^[-a-zA-Z0-9_/.+]+$/', $timezone)) {
 	$timezone = (isset($sys_default_timezone) ? $sys_default_timezone : 'GMT');
 }
-if (!isset($ccode) || empty($ccode) || !preg_match('/^\w{2}$/', $ccode)) {
+if (!isset($ccode) || empty($ccode) || !preg_match('/^[a-zA-Z]{2}$/', $ccode)) {
 	$ccode = $sys_default_country_code;
 }
 ?>




More information about the Fusionforge-commits mailing list