X-Git-Url: http://git.indexdata.com/?p=yaz-moved-to-github.git;a=blobdiff_plain;f=src%2Fsolr.c;fp=src%2Fsolr.c;h=99a9519737e47d8711eb198aaa2eec5be6e2888b;hp=e9d3dcfa56681cad03a6888506df044ad2c9fbaf;hb=ad1e3b8cec6c1c6f7d009d5cc2d04453a294914e;hpb=09c113499ad3e65ca1679889c2a0165a52f1cb50 diff --git a/src/solr.c b/src/solr.c index e9d3dcf..99a9519 100644 --- a/src/solr.c +++ b/src/solr.c @@ -583,6 +583,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) {