This commit is contained in:
Dejan Bosanac 2015-04-30 12:08:26 +02:00
parent 977deb42c8
commit f2c3ebfa0e
3 changed files with 6 additions and 3 deletions

View File

@ -60,7 +60,7 @@ public class FilenameGuardFilter implements Filter {
}
private String guard(String filename) {
String guarded = filename.replace(":", "_");
String guarded = filename.replace(":", "_").replace("\\", "").replace("/", "");
if (LOG.isDebugEnabled()) {
LOG.debug("guarded " + filename + " to " + guarded);
}

View File

@ -16,14 +16,14 @@
-->
<html>
<head>
<title>ActiveMQ Console</title>
<title>ActiveMQ File server</title>
</head>
<body>
<h1>RESTful file access</h1>
<p>
This webapp provides RESTful file access.
This webapp provides RESTful file access for <a href="http://activemq.apache.org/blob-messages.html">blob messages</a>. It's disabled by default, please take a look at web server configuration on how to enable it.
</p>
</body>

View File

@ -65,12 +65,15 @@
<property name="resourceBase" value="${activemq.home}/webapps/admin" />
<property name="logUrlOnStart" value="true" />
</bean>
<!-- Enable embedded file server for Blob messages -->
<!--
<bean class="org.eclipse.jetty.webapp.WebAppContext">
<property name="contextPath" value="/fileserver" />
<property name="resourceBase" value="${activemq.home}/webapps/fileserver" />
<property name="logUrlOnStart" value="true" />
<property name="parentLoaderPriority" value="true" />
</bean>
-->
<bean class="org.eclipse.jetty.webapp.WebAppContext">
<property name="contextPath" value="/api" />
<property name="resourceBase" value="${activemq.home}/webapps/api" />