Compare commits

..

No commits in common. "main" and "1.3.0" have entirely different histories.

3 changed files with 3 additions and 5 deletions

View file

@ -1 +1 @@
1.3.1
1.3.0

View file

@ -147,12 +147,10 @@ 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 == "" {

View file

@ -48,7 +48,7 @@
if (encryptionKey != "") {
copierCommand += "#" + encryptionKey;
}
document.getElementById("copierCommand").innerText = copierCommand;
document.getElementById("copierCommand").innerHTML = 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").innerText = curlCommand;
document.getElementById("curlCommand").innerHTML = curlCommand;
document.getElementById("curl").addEventListener("click", () => {
document.getElementById("curlContainer").style.display = "";
});