[mapserver-commits] r7992 - trunk/mapserver

svn at osgeo.org svn at osgeo.org
Wed Oct 22 21:23:37 EDT 2008


Author: tomkralidis
Date: 2008-10-22 21:23:37 -0400 (Wed, 22 Oct 2008)
New Revision: 7992

Modified:
   trunk/mapserver/HISTORY.TXT
   trunk/mapserver/mapowscommon.c
Log:
use strcasecmp to check for language value


Modified: trunk/mapserver/HISTORY.TXT
===================================================================
--- trunk/mapserver/HISTORY.TXT	2008-10-22 18:30:01 UTC (rev 7991)
+++ trunk/mapserver/HISTORY.TXT	2008-10-23 01:23:37 UTC (rev 7992)
@@ -12,6 +12,8 @@
 Current Version (5.3-dev, SVN trunk):
 ------------------------------------
 
+- mapowscommon.c: use strcasecmp to check for language value
+
 - raster query fix for tileindex with relative paths (#2722)
 
 - Fixed msOGRGetValues function to return default values if the object 

Modified: trunk/mapserver/mapowscommon.c
===================================================================
--- trunk/mapserver/mapowscommon.c	2008-10-22 18:30:01 UTC (rev 7991)
+++ trunk/mapserver/mapowscommon.c	2008-10-23 01:23:37 UTC (rev 7992)
@@ -493,7 +493,7 @@
   /* add attributes to root element */
   xmlNewProp(psRootNode, BAD_CAST "version", BAD_CAST version);
 
-  if (language !=  "undefined") {
+  if (strcasecmp(language, "undefined") == 0) {
     if (ows_version == OWS_1_0_0) {
       ows_version_string = strdup("1.0.0");
       xmlNewProp(psRootNode, BAD_CAST "language", BAD_CAST language);



More information about the mapserver-commits mailing list