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

Gonéri Le Bouder goneri at libremir.placard.fr.eu.org
Wed Mar 4 17:13:44 CET 2009


Author: goneri
Date: 2009-03-04 17:13:44 +0100 (Wed, 04 Mar 2009)
New Revision: 7104

Modified:
   trunk/gforge/www/account/register.php
Log:
fix the regex used to valided timezone

Modified: trunk/gforge/www/account/register.php
===================================================================
--- trunk/gforge/www/account/register.php	2009-03-04 16:12:51 UTC (rev 7103)
+++ trunk/gforge/www/account/register.php	2009-03-04 16:13:44 UTC (rev 7104)
@@ -94,7 +94,7 @@
 
 	print "</span>";
 } 
-if (!isset($timezone) || empty($timezone) || !preg_match('/^[-a-zA-Z0-9_/.+]+$/', $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('/^[a-zA-Z]{2}$/', $ccode)) {




More information about the Fusionforge-commits mailing list