[Mapbender-commits] r9735 - trunk/mapbender/http/geoportal

svn_mapbender at osgeo.org svn_mapbender at osgeo.org
Tue May 9 05:41:59 PDT 2017


Author: armin11
Date: 2017-05-09 05:41:59 -0700 (Tue, 09 May 2017)
New Revision: 9735

Modified:
   trunk/mapbender/http/geoportal/mod_readCSWResults.php
Log:
Fix problem when showing tags which are not closed in result list

Modified: trunk/mapbender/http/geoportal/mod_readCSWResults.php
===================================================================
--- trunk/mapbender/http/geoportal/mod_readCSWResults.php	2017-05-05 10:46:18 UTC (rev 9734)
+++ trunk/mapbender/http/geoportal/mod_readCSWResults.php	2017-05-09 12:41:59 UTC (rev 9735)
@@ -355,7 +355,7 @@
 	$getRecords .= '          <ogc:Filter>';
 	$getRecords .= '          <ogc:And>';
 	if ($queryText != '*') {
-		$getRecords .= '          <ogc:PropertyIsLike wildCard="%" singleChar="_" escape="">';
+		$getRecords .= '          <ogc:PropertyIsLike wildCard="%" singleChar="_" escapeChar="">';
 		$getRecords .= '          <ogc:PropertyName>AnyText</ogc:PropertyName>';
 		$getRecords .= '          <ogc:Literal>%'.$queryText.'%</ogc:Literal>';
 		$getRecords .= '          </ogc:PropertyIsLike>';
@@ -703,7 +703,7 @@
 			} else {
 				$bbox = '';
 			}
-                        $abstractShort = substr($abstract,0,250)."...";
+                        $abstractShort = strip_tags(substr($abstract,0,250)."...");
 			//echo "<br>Resultlist:<br>";
 			echo "<br><span>";
 			if (isset($graphicURL) && $graphicURL != '') {



More information about the Mapbender_commits mailing list