1
0
mirror of https://github.com/netbox-community/netbox.git synced 2024-05-10 07:54:54 +00:00

Merge pull request #6836 from Ursadon/patch-1

Escaping angle brackets in a device config file
This commit is contained in:
Jeremy Stretch
2021-07-30 10:09:04 -04:00
committed by GitHub

View File

@ -39,9 +39,9 @@ $(document).ready(function() {
url: "{% url 'dcim-api:device-napalm' pk=object.pk %}?method=get_config",
dataType: 'json',
success: function(json) {
$('#running_config').html($.trim(json['get_config']['running']));
$('#startup_config').html($.trim(json['get_config']['startup']));
$('#candidate_config').html($.trim(json['get_config']['candidate']));
$('#running_config').text($.trim(json['get_config']['running']));
$('#startup_config').text($.trim(json['get_config']['startup']));
$('#candidate_config').text($.trim(json['get_config']['candidate']));
},
error: function(xhr) {
alert(xhr.responseText);