diff --git a/mapwms.c b/mapwms.c index 29d97614c6..002b7780da 100644 --- a/mapwms.c +++ b/mapwms.c @@ -1540,7 +1540,7 @@ this request. Check wms/ows_enable_request settings.", int numlayers =0; layerObj *lp = NULL; - tokens = msStringSplit(styles, ',' ,&n); + tokens = msStringSplitComplex(styles, ",",&n,MS_ALLOWEMPTYTOKENS); for (i=0; i 0 && strcasecmp(tokens[i],"default") != 0) {