Browse Source

Fixes #1472: Secret truncated when using '<' character (#1477)

huzichunjohn 7 years ago
parent
commit
b6df0209ba
1 changed files with 1 additions and 1 deletions
  1. 1 1
      netbox/project-static/js/secrets.js

+ 1 - 1
netbox/project-static/js/secrets.js

@@ -43,7 +43,7 @@ $(document).ready(function() {
             success: function (response, status) {
                 if (response.plaintext) {
                     console.log("Secret retrieved successfully");
-                    $('#secret_' + secret_id).html(response.plaintext);
+                    $('#secret_' + secret_id).text(response.plaintext);
                     $('button.unlock-secret[secret-id=' + secret_id + ']').hide();
                     $('button.lock-secret[secret-id=' + secret_id + ']').show();
                 } else {