From 55e7216292e9629158e931353eafd643e64e8b0f Mon Sep 17 00:00:00 2001 From: Bosanac Dejan Date: Tue, 8 Nov 2011 14:29:34 +0000 Subject: [PATCH] https://issues.apache.org/jira/browse/AMQ-3581 - web console escape url git-svn-id: https://svn.apache.org/repos/asf/activemq/trunk@1199259 13f79535-47bb-0310-9956-ffa450edef68 --- .../main/webapp/WEB-INF/tags/form/escape.tag | 20 ++++++++++++++ .../src/main/webapp/queues.jsp | 27 +++++++++++++------ .../src/main/webapp/subscribers.jsp | 10 +++++-- .../src/main/webapp/topics.jsp | 13 ++++++--- 4 files changed, 57 insertions(+), 13 deletions(-) create mode 100644 activemq-web-console/src/main/webapp/WEB-INF/tags/form/escape.tag diff --git a/activemq-web-console/src/main/webapp/WEB-INF/tags/form/escape.tag b/activemq-web-console/src/main/webapp/WEB-INF/tags/form/escape.tag new file mode 100644 index 0000000000..5c52e00f0b --- /dev/null +++ b/activemq-web-console/src/main/webapp/WEB-INF/tags/form/escape.tag @@ -0,0 +1,20 @@ +<%-- + Licensed to the Apache Software Foundation (ASF) under one or more + contributor license agreements. See the NOTICE file distributed with + this work for additional information regarding copyright ownership. + The ASF licenses this file to You under the Apache License, Version 2.0 + (the "License"); you may not use this file except in compliance with + the License. You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +--%> +<%@ attribute name="text" type="java.lang.String" required="true" %> +<% + out.println(java.net.URLEncoder.encode(text, "UTF-8")); +%> \ No newline at end of file diff --git a/activemq-web-console/src/main/webapp/queues.jsp b/activemq-web-console/src/main/webapp/queues.jsp index ab535e471d..b99fe1ca02 100644 --- a/activemq-web-console/src/main/webapp/queues.jsp +++ b/activemq-web-console/src/main/webapp/queues.jsp @@ -51,21 +51,32 @@ -"> + + "> ${row.queueSize} ${row.consumerCount} ${row.enqueueCount} ${row.dequeueCount} - ">Browse - ">Active Consumers
- ?view=rss&feedType=atom_1.0" title="Atom 1.0"> - ?view=rss&feedType=rss_2.0" title="RSS 2.0"> + + ">Browse + + ">Active Consumers
+ ?view=rss&feedType=atom_1.0" title="Atom 1.0"> + ?view=rss&feedType=rss_2.0" title="RSS 2.0"> - &JMSDestinationType=queue">Send To - &JMSDestinationType=queue&secret=">Purge - &JMSDestinationType=queue&secret=">Delete + + + ">Send To + + + + ">Purge + + + + ">Delete
diff --git a/activemq-web-console/src/main/webapp/subscribers.jsp b/activemq-web-console/src/main/webapp/subscribers.jsp index 411d655cf0..3bb3af393a 100644 --- a/activemq-web-console/src/main/webapp/subscribers.jsp +++ b/activemq-web-console/src/main/webapp/subscribers.jsp @@ -103,7 +103,10 @@ ${row.enqueueCounter} ${row.dequeueCounter} - ">Delete + + + + ">Delete @@ -144,7 +147,10 @@ ${row.enqueueCounter} ${row.dequeueCounter} - ">Delete + + + + ">Delete diff --git a/activemq-web-console/src/main/webapp/topics.jsp b/activemq-web-console/src/main/webapp/topics.jsp index ae608d1de4..525945d686 100644 --- a/activemq-web-console/src/main/webapp/topics.jsp +++ b/activemq-web-console/src/main/webapp/topics.jsp @@ -47,13 +47,20 @@ -&JMSDestinationType=topic"> + + + "> ${row.consumerCount} ${row.enqueueCount} ${row.dequeueCount} - &JMSDestinationType=topic">Send To - &JMSDestinationType=topic&secret=">Delete + + + ">Send To + + + + ">Delete