Explorar o código

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

huzichunjohn %!s(int64=8) %!d(string=hai) anos
pai
achega
b6df0209ba
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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 {