README update about current functionality and public pastes saving fix.

This commit is contained in:
Stanislav Nikitin 2018-05-02 11:29:29 +05:00
parent a8c8f6de36
commit ec2e885438
2 changed files with 3 additions and 3 deletions

View File

@ -9,8 +9,7 @@ whistles, no websockets and even NO JAVASCRIPT!(*)
# Current functionality.
* Paste text.
* View pastes.
* Create and view public and private pastes.
* Syntax highlighting.
# Caveats.

View File

@ -220,7 +220,8 @@ func pastePOST(ec echo.Context) error {
// Private paste?
paste.Private = false
if params["paste-private"][0] == "on" {
privateCheckbox, privateCheckboxFound := params["paste-private"]
if privateCheckboxFound && privateCheckbox[0] == "on" {
paste.Private = true
}