You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucene.apache.org by us...@apache.org on 2020/09/20 08:42:34 UTC
[lucene-solr] branch master updated: SOLR-14824: Hotfix for
escaping windows paths. IMHO, the template appraoch is not good,
we should take care of escaping other props, too
This is an automated email from the ASF dual-hosted git repository.
uschindler pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/lucene-solr.git
The following commit(s) were added to refs/heads/master by this push:
new aa071f7 SOLR-14824: Hotfix for escaping windows paths. IMHO, the template appraoch is not good, we should take care of escaping other props, too
aa071f7 is described below
commit aa071f72b153c14f3913f21da19a10ceac5bd02f
Author: Uwe Schindler <us...@apache.org>
AuthorDate: Sun Sep 20 10:42:19 2020 +0200
SOLR-14824: Hotfix for escaping windows paths. IMHO, the template appraoch is not good, we should take care of escaping other props, too
---
solr/solr-ref-guide/build.gradle | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/solr/solr-ref-guide/build.gradle b/solr/solr-ref-guide/build.gradle
index f6320e8..0a4bf84 100644
--- a/solr/solr-ref-guide/build.gradle
+++ b/solr/solr-ref-guide/build.gradle
@@ -35,6 +35,7 @@ import java.time.*
import java.time.format.*
import java.nio.file.*
import org.asciidoctor.*
+import groovy.json.StringEscapeUtils
buildscript {
repositories {
@@ -151,7 +152,7 @@ ext {
javadocLink: "https://docs.oracle.com/en/java/javase/11/docs/api/",
solrGuideDraftStatus: propertyOrDefault("solrGuideDraft", "true").toBoolean() ? "DRAFT" : "",
- solrRootPath: project(':solr').projectDir.toString() + File.separator,
+ solrRootPath: StringEscapeUtils.escapeJava(project(':solr').projectDir.toString() + File.separator),
solrDocsVersion: solrDocsVersion,
solrGuideVersionPath: solrGuideVersionPath,