Skip to content

Commit 11ab43e

Browse files
author
Olivier Courtin
committed
Unable to deal with NS prefix
1 parent fb7fc0c commit 11ab43e

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/wfs/wfs_request.c

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -253,7 +253,7 @@ static list *wfs_request_check_typename(ows * o, wfs_request * wr, list * layer_
253253
*/
254254
static list *wfs_request_check_fid(ows * o, wfs_request * wr, list * layer_name)
255255
{
256-
list *fe;
256+
list *fe, *ff;
257257
mlist *f;
258258
buffer *b, *layer;
259259
list_node *ln, *ln_tpn;
@@ -302,7 +302,9 @@ static list *wfs_request_check_fid(ows * o, wfs_request * wr, list * layer_name)
302302
return NULL;
303303
}
304304

305-
layer = ows_layer_no_uri_to_uri(o->layers, fe->last->value);
305+
ff = list_split(':', fe->last->value, false);
306+
layer = ows_layer_no_uri_to_uri(o->layers, ff->last->value);
307+
list_free(ff);
306308

307309
/* If typename is NULL, fill the layer name list */
308310
if (!wr->typename && !in_list(layer_name, layer))

0 commit comments

Comments
 (0)