X-Git-Url: http://git.indexdata.com/?p=yaz-moved-to-github.git;a=blobdiff_plain;f=src%2Fsolr.c;h=4ae57bbb732e746ddc883348b95e36bebcc18432;hp=e9d3dcfa56681cad03a6888506df044ad2c9fbaf;hb=7adfe1c2e69ddf39a4f26c015171168a1a8f0ee4;hpb=09c113499ad3e65ca1679889c2a0165a52f1cb50 diff --git a/src/solr.c b/src/solr.c index e9d3dcf..4ae57bb 100644 --- a/src/solr.c +++ b/src/solr.c @@ -18,6 +18,7 @@ #include #include #include +#include #include "sru-p.h" @@ -583,6 +584,9 @@ int yaz_solr_encode_request(Z_HTTP_Request *hreq, Z_SRW_PDU *srw_pdu, odr_malloc(encode, strlen(hreq->path) + strlen(uri_args) + strlen(solr_op) + 5); + cp = strchr(hreq->path, '#'); + if (cp) + *cp = '\0'; cp = strchr(hreq->path, '?'); if (cp) {