HBASE-17558 ZK dumping jsp should escape HTML.

Signed-off-by: Enis Soztutar <enis@apache.org>
This commit is contained in:
Sean Busbey 2017-02-09 18:29:32 -08:00 committed by Sean Busbey
parent 915928287f
commit 024ae356ac
1 changed files with 2 additions and 1 deletions

View File

@ -18,6 +18,7 @@
*/ */
--%> --%>
<%@ page contentType="text/html;charset=UTF-8" <%@ page contentType="text/html;charset=UTF-8"
import="org.apache.commons.lang.StringEscapeUtils"
import="org.apache.hadoop.hbase.zookeeper.ZKUtil" import="org.apache.hadoop.hbase.zookeeper.ZKUtil"
import="org.apache.hadoop.hbase.zookeeper.ZooKeeperWatcher" import="org.apache.hadoop.hbase.zookeeper.ZooKeeperWatcher"
import="org.apache.hadoop.hbase.HBaseConfiguration" import="org.apache.hadoop.hbase.HBaseConfiguration"
@ -80,7 +81,7 @@
</div> </div>
<div class="row"> <div class="row">
<div class="span12"> <div class="span12">
<pre><%= ZKUtil.dump(watcher).trim() %></pre> <pre><%= StringEscapeUtils.escapeHtml(ZKUtil.dump(watcher).trim()) %></pre>
</div> </div>
</div> </div>
</div> </div>