Compare commits
3 commits
Author | SHA1 | Date | |
---|---|---|---|
2c4ce556dc |
|||
121971210a | |||
020b50fb58 |
3 changed files with 5 additions and 3 deletions
2
VERSION
2
VERSION
|
@ -1 +1 @@
|
|||
1.3.0
|
||||
1.3.1
|
||||
|
|
|
@ -147,10 +147,12 @@ func (h *CreateNoteWithFormHandler) ServeHTTP(w http.ResponseWriter, r *http.Req
|
|||
|
||||
if !h.PageData.AllowNoEncryption && noEncryption != "" {
|
||||
h.WebError(w, logger, ErrEncryptionRequired, nil)
|
||||
return
|
||||
}
|
||||
|
||||
if !h.PageData.AllowClientEncryptionKey && encryptionKey != "" {
|
||||
h.WebError(w, logger, ErrClientEncryptionKeyNotAllowed, nil)
|
||||
return
|
||||
}
|
||||
|
||||
if !h.PageData.AllowClientEncryptionKey && encryptionKey == "" && noEncryption == "" {
|
||||
|
|
|
@ -48,7 +48,7 @@
|
|||
if (encryptionKey != "") {
|
||||
copierCommand += "#" + encryptionKey;
|
||||
}
|
||||
document.getElementById("copierCommand").innerHTML = copierCommand;
|
||||
document.getElementById("copierCommand").innerText = copierCommand;
|
||||
document.getElementById("copier").addEventListener("click", () => {
|
||||
document.getElementById("copierContainer").style.display = "";
|
||||
});
|
||||
|
@ -77,7 +77,7 @@
|
|||
curlCommand += " -XPOST -d '" + payload + "'";
|
||||
}
|
||||
curlCommand += " " + window.location.origin + "/api/note/{{ .Note.ID }}";
|
||||
document.getElementById("curlCommand").innerHTML = curlCommand;
|
||||
document.getElementById("curlCommand").innerText = curlCommand;
|
||||
document.getElementById("curl").addEventListener("click", () => {
|
||||
document.getElementById("curlContainer").style.display = "";
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue