Skip to content

Commit

Permalink
Fix #17 - Thanks to Jukka for report
Browse files Browse the repository at this point in the history
  • Loading branch information
Olivier Courtin committed Oct 9, 2012
1 parent ceecbbd commit e74dace
Showing 1 changed file with 0 additions and 20 deletions.
20 changes: 0 additions & 20 deletions src/wfs/wfs_request.c
Expand Up @@ -629,7 +629,6 @@ static void wfs_request_check_propertyname(ows * o, wfs_request * wr, list * lay
{
buffer *b;
mlist *f;
list *fe;
list_node *ln, *ln_tpn;
array *prop_table;
mlist_node *mln = NULL;
Expand Down Expand Up @@ -658,25 +657,6 @@ static void wfs_request_check_propertyname(ows * o, wfs_request * wr, list * lay
prop_table = ows_psql_describe_table(o, ln_tpn->value);

for (ln = mln->value->first ; ln ; ln = ln->next) {
fe = list_explode('.', ln->value);

/*case layer_name.propertyname */
if (fe->first->next) {
/*check if propertyname values match typename or fid layer names */
if (!buffer_cmp(fe->first->value, ln_tpn->value->buf)) {
list_free(fe);
mlist_free(f);
wfs_error(o, wr, WFS_ERROR_NO_MATCHING,
"propertyname values and typename values don't match", "GetFeature");
return;
}

/* keep only the propertyname (without the layer prefixed) */
buffer_empty(ln->value);
buffer_copy(ln->value, fe->last->value);
}

list_free(fe);

/* if propertyname is an Xpath expression */
if (check_regexp(ln->value->buf, "\\*\\["))
Expand Down

0 comments on commit e74dace

Please sign in to comment.