SOLR-6738: Admin UI - Escape Data on Plugins-View

git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1639383 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Stefan Matheis 2014-11-13 16:36:41 +00:00
parent b3061b0493
commit 57c055bf44
2 changed files with 8 additions and 6 deletions

View File

@ -289,6 +289,8 @@ Bug Fixes
scripts; remove -XX:+AggressiveOpts and only set -XX:-UseSuperWord for Java 1.7u40
to u51. (Uwe Schindler, janhoy, hossman, Timothy Potter)
* SOLR-6738: Admin UI - Escape Data on Plugins-View (steffkes)
Optimizations
----------------------

View File

@ -235,21 +235,21 @@ var render_plugin_data = function( plugin_data, plugin_sort, types )
}
content += '<li><dl class="clearfix">' + "\n";
content += '<dt>' + detail_key + ':</dt>' + "\n";
content += '<dt>' + detail_key.esc() + ':</dt>' + "\n";
if($.isArray(detail_value)) {
$.each(detail_value, function(index, value) {
content += '<dd>' + value + '</dd>' + "\n";
content += '<dd>' + value.esc() + '</dd>' + "\n";
});
}
else {
content += '<dd>' + detail_value + '</dd>' + "\n";
content += '<dd>' + new String( detail_value ).esc() + '</dd>' + "\n";
}
content += '</dl></li>' + "\n";
}
else if( 'stats' === detail_key && details[detail_key] )
{
content += '<li class="stats clearfix">' + "\n";
content += '<span>' + detail_key + ':</span>' + "\n";
content += '<span>' + detail_key.esc() + ':</span>' + "\n";
content += '<ul>' + "\n";
for( var stats_key in details[detail_key] )
@ -258,8 +258,8 @@ var render_plugin_data = function( plugin_data, plugin_sort, types )
stats_value = stats_value.replace( /([\(@])/g, '$1&#8203;' );
content += '<li><dl class="clearfix">' + "\n";
content += '<dt>' + stats_key + ':</dt>' + "\n";
content += '<dd>' + stats_value + '</dd>' + "\n";
content += '<dt>' + stats_key.esc() + ':</dt>' + "\n";
content += '<dd>' + stats_value.esc() + '</dd>' + "\n";
content += '</dl></li>' + "\n";
}