diff --git a/service/src/main/java/gov/nasa/pds/api/registry/search/RegistrySearchRequestBuilder.java b/service/src/main/java/gov/nasa/pds/api/registry/search/RegistrySearchRequestBuilder.java index ab1ed850..c8ae16e6 100644 --- a/service/src/main/java/gov/nasa/pds/api/registry/search/RegistrySearchRequestBuilder.java +++ b/service/src/main/java/gov/nasa/pds/api/registry/search/RegistrySearchRequestBuilder.java @@ -339,7 +339,8 @@ public RegistrySearchRequestBuilder constrainByQueryString(String q) throws Unpa } return this; } catch (RecognitionException | ParseCancellationException e) { - log.info("Unable to parse q " + q + "error message is " + e); + String sanitizedQ = q.replace('\n', ' ').replace('\r', ' '); + log.info("Unable to parse q " + sanitizedQ + " error message is " + e); throw new UnparsableQParamException( "q string value:" + q + " Error message " + e.getMessage()); }