[Mapbender-commits] r7648 - trunk/mapbender/http/php

svn_mapbender at osgeo.org svn_mapbender at osgeo.org
Fri Feb 25 07:17:44 EST 2011


Author: verenadiewald
Date: 2011-02-25 04:17:44 -0800 (Fri, 25 Feb 2011)
New Revision: 7648

Modified:
   trunk/mapbender/http/php/mod_wfs_gazetteer_server.php
Log:
read WFS_RESPONSE_SIZE_LIMIT if defined

Modified: trunk/mapbender/http/php/mod_wfs_gazetteer_server.php
===================================================================
--- trunk/mapbender/http/php/mod_wfs_gazetteer_server.php	2011-02-25 08:56:35 UTC (rev 7647)
+++ trunk/mapbender/http/php/mod_wfs_gazetteer_server.php	2011-02-25 12:17:44 UTC (rev 7648)
@@ -147,6 +147,9 @@
 	$data = $myWfs->getFeature($typename, $filter,$destSrs);
 	if ($data === null) die('{}');
 	
+	if (defined("WFS_RESPONSE_SIZE_LIMIT") && WFS_RESPONSE_SIZE_LIMIT < strlen($data)) {
+		die("Too many results, please restrict your search.");
+	}
 //	$geomColumn = WfsConf::getGeomColumnNameByConfId($wfs_conf_id);
 
 	$gmlFactory = new UniversalGmlFactory();



More information about the Mapbender_commits mailing list