[Mapbender-commits] r3876 - in trunk/mapbender/http: classes php

svn_mapbender at osgeo.org svn_mapbender at osgeo.org
Wed Apr 15 07:41:45 EDT 2009


Author: christoph
Date: 2009-04-15 07:41:45 -0400 (Wed, 15 Apr 2009)
New Revision: 3876

Modified:
   trunk/mapbender/http/classes/class_wmc.php
   trunk/mapbender/http/php/mod_loadwmc_server.php
Log:
http://trac.osgeo.org/mapbender/ticket/441

Modified: trunk/mapbender/http/classes/class_wmc.php
===================================================================
--- trunk/mapbender/http/classes/class_wmc.php	2009-04-15 11:39:07 UTC (rev 3875)
+++ trunk/mapbender/http/classes/class_wmc.php	2009-04-15 11:41:45 UTC (rev 3876)
@@ -216,7 +216,7 @@
 		$result = array();
 		if ($this->userId && $this->xml && $this->wmc_title) {
 			$sql = "INSERT INTO mb_user_wmc VALUES ($1, $2, $3, $4, $5)";
-			$v = array($this->wmc_id, $this->userId, $this->xml, $this->wmc_title, time());
+			$v = array($this->wmc_id, $this->userId, $this->xml, administration::convertOutgoingString($this->wmc_title), time());
 			$t = array("s", "i", "s", "s", "s");
 			
 			$res = db_prep_query($sql, $v, $t);

Modified: trunk/mapbender/http/php/mod_loadwmc_server.php
===================================================================
--- trunk/mapbender/http/php/mod_loadwmc_server.php	2009-04-15 11:39:07 UTC (rev 3875)
+++ trunk/mapbender/http/php/mod_loadwmc_server.php	2009-04-15 11:41:45 UTC (rev 3876)
@@ -3,6 +3,7 @@
 require_once(dirname(__FILE__) . "/../classes/class_user.php");
 require_once(dirname(__FILE__) . "/../classes/class_wmc.php");
 require_once(dirname(__FILE__) . "/../classes/class_json.php");
+require_once(dirname(__FILE__) . "/../classes/class_administration.php");
 
 /**
  * encodes and delivers the data
@@ -57,7 +58,7 @@
 	while($row = db_fetch_array($res)){
 		$currentResult = array();
 		$currentResult["id"] = $row["wmc_id"];
-		$currentResult["title"] = $row["wmc_title"];
+		$currentResult["title"] = administration::convertIncomingString($row["wmc_title"]);
 		$currentResult["timestamp"] = date("M d Y H:i:s", $row["wmc_timestamp"]); 
 		array_push($wmcArray, $currentResult);
 	}
@@ -174,4 +175,4 @@
 }
 
 sendOutput($resultObj);
-?>
\ No newline at end of file
+?>



More information about the Mapbender_commits mailing list