[Mapbender-commits] r1741 - trunk/mapbender/http/classes

svn_mapbender at osgeo.org svn_mapbender at osgeo.org
Fri Oct 26 06:14:44 EDT 2007


Author: christoph
Date: 2007-10-26 06:14:44 -0400 (Fri, 26 Oct 2007)
New Revision: 1741

Modified:
   trunk/mapbender/http/classes/class_checkInput.php
Log:
error in regular expression

Modified: trunk/mapbender/http/classes/class_checkInput.php
===================================================================
--- trunk/mapbender/http/classes/class_checkInput.php	2007-10-26 10:12:53 UTC (rev 1740)
+++ trunk/mapbender/http/classes/class_checkInput.php	2007-10-26 10:14:44 UTC (rev 1741)
@@ -29,7 +29,7 @@
 		if(count($v) != count($t)){
 			$e = new mb_exception("array params and array types have a different count  in ".$_SERVER['SCRIPT_FILENAME'].": Sql: ".$q);
 		}
-		if(PREPAREDSTATEMENTS == true && SYS_DBTYPE == "pgsql"){
+		if(PREPAREDSTATEMENTS == true){
 			$this->v = $v;
 		}
 		else{
@@ -38,7 +38,7 @@
 					$v[$i] = db_escape_string($v[$i]);
 				}
 				else if($t[$i] == 'i'){
-					if(preg_match("/\w/",$v[$i])){
+					if(preg_match("/w/",$v[$i])){
 						$e = new mb_exception($_SERVER['SCRIPT_FILENAME'].": Unable to parse integer in: ".$q." with: param ".$i.",".$v[i]);
 						die("wrong data type in sql:".$q);
 					}					



More information about the Mapbender_commits mailing list