[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    www/areas/worldwide
From:       Rainer Endres <endres () physos ! org>
Date:       2006-01-07 6:14:22
Message-ID: 1136614462.137634.3562.nullmailer () svn ! kde ! org
[Download RAW message or body]

SVN commit 495114 by endres:


        This should allow negative latitudes and longitudes



 M  +1 -1      form.php  


--- trunk/www/areas/worldwide/form.php #495113:495114
@@ -38,7 +38,7 @@
 	echo "<p>You did not enter a valid latitude</p>";
 }
 
-if ( !ereg ( "^[0-9]+\.[0-9]+$", $long ) ) {
+if ( !ereg ( "^[+-]{0,1}[0-9]+\.[0-9]+$", $long ) ) {
 	$error = true;
 	$error_long = true;
 	echo "<p>You did not enter a valid longitude</p>";
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic