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

Alain Peyrat aljeux at libremir.placard.fr.eu.org
Tue Feb 24 11:22:26 CET 2009


Author: aljeux
Date: 2009-02-24 11:22:25 +0100 (Tue, 24 Feb 2009)
New Revision: 7052

Modified:
   trunk/gforge/www/account/register.php
Log:
drop eregi for preg_match and regex clean up

Modified: trunk/gforge/www/account/register.php
===================================================================
--- trunk/gforge/www/account/register.php	2009-02-24 08:05:23 UTC (rev 7051)
+++ trunk/gforge/www/account/register.php	2009-02-24 10:22:25 UTC (rev 7052)
@@ -87,10 +87,10 @@
 if (isset($feedback)) {
 	print "<p><span class=\"error\">$feedback $register_error</span>";
 } 
-if (!isset($timezone) || empty($timezone) || !eregi('^[-a-z0-9_/]*?$', $timezone)) {
+if (!isset($timezone) || empty($timezone) || !preg_match('/^[-\w]+$/', $timezone)) {
 	$timezone = (isset($sys_default_timezone) ? $sys_default_timezone : 'GMT');
 }
-if (!isset($ccode) || empty($ccode) || !eregi('^[a-z][a-z]$', $ccode)) {
+if (!isset($ccode) || empty($ccode) || !preg_match('/^\w{2}$/', $ccode)) {
 	$ccode = $sys_default_country_code;
 }
 ?>




More information about the Fusionforge-commits mailing list