Skip to content

Commit

Permalink
Fixes netbox-community#1472: Secret truncated when using '<' character
Browse files Browse the repository at this point in the history
  • Loading branch information
huzichunjohn committed Sep 8, 2017
1 parent a69dbd9 commit 5b9bfc7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion netbox/project-static/js/secrets.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 5b9bfc7

Please sign in to comment.