mirror of https://github.com/apache/lucene.git
don't use package as var name - the police will be all over that
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1457132 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
5b6b0776ef
commit
596616b469
|
@ -54,7 +54,7 @@ public final class LoadAdminUiServlet extends HttpServlet {
|
|||
Writer out = new OutputStreamWriter(response.getOutputStream(), "UTF-8");
|
||||
|
||||
String html = IOUtils.toString(in, "UTF-8");
|
||||
Package package = SolrCore.class.getPackage();
|
||||
Package pack = SolrCore.class.getPackage();
|
||||
|
||||
String[] search = new String[] {
|
||||
"${contextPath}",
|
||||
|
@ -64,7 +64,7 @@ public final class LoadAdminUiServlet extends HttpServlet {
|
|||
String[] replace = new String[] {
|
||||
StringEscapeUtils.escapeJavaScript(request.getContextPath()),
|
||||
StringEscapeUtils.escapeJavaScript(cores.getAdminPath()),
|
||||
StringEscapeUtils.escapeJavaScript(package.getSpecificationVersion())
|
||||
StringEscapeUtils.escapeJavaScript(pack.getSpecificationVersion())
|
||||
};
|
||||
|
||||
out.write( StringUtils.replaceEach(html, search, replace) );
|
||||
|
|
Loading…
Reference in New Issue