<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[[FIX] SquidGuard "Proxy config" text cutoff/truncation caused by SSL ciphers]]></title><description><![CDATA[<p dir="auto">Hi everyone,</p>
<p dir="auto">If you are running a modernized Squid setup (like the Squid 7 branch) with heavy SSL/TLS inspection rules, you might have noticed a visual bug where the Proxy config preview box under Services &gt; SquidGuard Proxy Filter &gt; Log abruptly cuts off text right after the cipher suites.</p>
<p dir="auto">This is a purely cosmetic GUI bug that does not impact your actual proxy operations, but it prevents you from auditing your full configuration file through the web interface.</p>
<p dir="auto"><img src="https://forum.netgate.com/assets/plugins/nodebb-plugin-emoji/emoji/android/1f50d.png?v=77b3f8c0221" class="not-responsive emoji emoji-android emoji--mag" style="height:1.4em;width:auto;vertical-align:middle" title="🔍" alt="🔍" /> The Cause<br />
The bug lives in /usr/local/www/squidguard_log.php within the squidguard_prep_textareacont() function.</p>
<p dir="auto">The code uses jQuery’s .html() method to dynamically push the configuration text into the browser layout. Because ssl-bump options are packed with complex raw characters (like !, +, and :), the browser misinterprets the data string as broken HTML formatting and quietly crashes the text rendering.</p>
<p dir="auto"><img src="https://forum.netgate.com/assets/plugins/nodebb-plugin-emoji/emoji/android/1f6e0.png?v=77b3f8c0221" class="not-responsive emoji emoji-android emoji--hammer_and_wrench" style="height:1.4em;width:auto;vertical-align:middle" title="🛠" alt="🛠" />️ The Simple<br />
FixTo fix this, the script simply needs to handle the incoming configuration string as plain text rather than code instructions. Changing .html() to .text() solves the collision entirely.</p>
<p dir="auto">Open /usr/local/www/squidguard_log.php and update the function around line 115:</p>
<p dir="auto">Before:</p>
<pre><code>function squidguard_prep_textareacont($cont) {
	$cont = squidguard_prepfor_JS($cont);
	return "$('#reportarea').html(\"&lt;br&gt;&lt;pre id='pconf' name='pconf' wrap='hard' readonly&gt;&lt;/pre&gt;\");" .
		"$('#pconf').html('$cont');";
}
</code></pre>
<p dir="auto">After:</p>
<pre><code>function squidguard_prep_textareacont($cont) {
	$cont = squidguard_prepfor_JS($cont);
	return "$('#reportarea').html(\"&lt;br&gt;&lt;pre id='pconf' name='pconf' wrap='hard' readonly&gt;&lt;/pre&gt;\");" .
		"$('#pconf').text('$cont');"; // Fixed here
}

</code></pre>
<p dir="auto">Once saved, the preview pane immediately processes the entire configuration file flawlessly. Hopefully, this saves someone else some troubleshooting time!</p>
<p dir="auto">Also helps prevent Cross Site Scripting XSS</p>
]]></description><link>https://forum.netgate.com/topic/201409/fix-squidguard-proxy-config-text-cutoff-truncation-caused-by-ssl-ciphers</link><generator>RSS for Node</generator><lastBuildDate>Sun, 08 Nov 2026 04:59:49 GMT</lastBuildDate><atom:link href="https://forum.netgate.com/topic/201409.rss" rel="self" type="application/rss+xml"/><pubDate>Sat, 19 Sep 2026 22:22:38 GMT</pubDate><ttl>60</ttl></channel></rss>