[mapserver-commits] r7655 - trunk/mapserver

svn at osgeo.org svn at osgeo.org
Sat Jun 7 09:16:13 EDT 2008


Author: sdlime
Date: 2008-06-07 09:16:13 -0400 (Sat, 07 Jun 2008)
New Revision: 7655

Modified:
   trunk/mapserver/mapserv.c
Log:
Enabled 'qformat' CGI parameter as a the means of setting the WEB QUERYFORMAT.

Modified: trunk/mapserver/mapserv.c
===================================================================
--- trunk/mapserver/mapserv.c	2008-06-07 06:08:55 UTC (rev 7654)
+++ trunk/mapserver/mapserv.c	2008-06-07 13:16:13 UTC (rev 7655)
@@ -841,6 +841,12 @@
       continue;
     }
 
+    if(strcasecmp(mapserv->request->ParamNames[i],"qformat") == 0) { /* format to apply to query results (shortcut instead of having to use "map.web=QUERYFORMAT+foo") */
+      if(mapserv->map->web.queryformat) free(mapserv->map->web.queryformat); /* avoid leak */
+      mapserv->map->web.queryformat = strdup(mapserv->request->ParamValues[i]);
+      continue;
+    }
+
     if(strcasecmp(mapserv->request->ParamNames[i],"slayer") == 0) { /* layer to select (for feature based search) */
       SelectLayer = strdup(mapserv->request->ParamValues[i]);
       continue;



More information about the mapserver-commits mailing list