Revision cd3e3a5c
Added by Jim Pingle over 7 years ago
src/usr/local/www/diag_dns.php | ||
---|---|---|
337 | 337 |
<script type="text/javascript"> |
338 | 338 |
//<![CDATA[ |
339 | 339 |
events.push(function() { |
340 |
var original_host = "<?=$host;?>";
|
|
340 |
var original_host = "<?=json_encode($host);?>";
|
|
341 | 341 |
|
342 | 342 |
$('input[name="host"]').on('input', function() { |
343 | 343 |
if ($('#host').val() == original_host) { |
Also available in: Unified diff
Encode hostname parameter contents in javascript for diag_dns.php. Fixes #7999
(cherry picked from commit 43746e1b4ef6fec0e9c915495aa3926a6b97e7a3)
(cherry picked from commit 4aa5f989c8a802638ee9d1130dc486cc2b637a78)