More fragment removal in SRU GET and Solr case YAZ-730
[yaz-moved-to-github.git] / src / solr.c
index e9d3dcf..99a9519 100644 (file)
@@ -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);
 
         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)
     {
     cp = strchr(hreq->path, '?');
     if (cp)
     {