fix: usr: Disable output escaping in bind9.xsl
Some checks are pending
CodeQL / Analyze (push) Waiting to run
SonarCloud / Build and analyze (push) Waiting to run

The statistics charts where not displaying on some browsers.
This has been fixed.

Closes #5990

Merge branch '5990-disable-output-escaping-in-bind9-xsl' into 'main'

See merge request isc-projects/bind9!12018
This commit is contained in:
Mark Andrews 2026-05-14 12:06:41 +10:00
commit 2091d703ac

View file

@ -22,7 +22,7 @@
<script type="text/javascript">
$(function($) {
var wid=0;
$('table.zones').each(function(i) { if( $(this).width() > wid ) wid = $(this).width(); return true; });
<xsl:text disable-output-escaping="yes">$('table.zones').each(function(i) { if( $(this).width() > wid ) wid = $(this).width(); return true; });</xsl:text>
$('table.zones').css('min-width', wid );
$("h2+table,h3+table,h4+table,h2+div,h3+div,h2+script,h3+script").prev().append(' <a class="tabletoggle" href="#" style="font-size:small">Show/Hide</a>');
$(".tabletoggle").click(function(){
@ -63,7 +63,7 @@
var g;
while (g = graphs.shift()) {
if (g.data.length > 1) {
<xsl:text disable-output-escaping="yes">if (g.data.length > 1) {</xsl:text>
drawChart(g.title,g.target,g.style,g.data);
}
}