Compare commits

..

No commits in common. "32b733527fb247581c2fee7d4ca5ca482256e899" and "f597ce4c1954ddae54373a4c47ba4f877f3eed8c" have entirely different histories.

2 changed files with 1 additions and 17 deletions

View file

@ -126,10 +126,6 @@ LIMIT 5
return return
} }
if jpi.Filename == "" {
jpi.Filename = "untitled"
}
jpis = append(jpis, jpi) jpis = append(jpis, jpi)
} }
@ -225,10 +221,6 @@ func (s *Server) TailnetSubmitPaste(w http.ResponseWriter, r *http.Request) {
data := r.Form.Get("content") data := r.Form.Get("content")
id := uuid.NewString() id := uuid.NewString()
if fname == "" {
fname = "untitled"
}
q := ` q := `
INSERT INTO pastes INSERT INTO pastes
( id ( id
@ -330,10 +322,6 @@ OFFSET ?1
return return
} }
if jpi.Filename == "" {
jpi.Filename = "untitled"
}
jpis = append(jpis, jpi) jpis = append(jpis, jpi)
} }
@ -514,10 +502,6 @@ WHERE p.id = ?1`
return return
} }
if fname == "" {
fname = "untitled"
}
lang := enry.GetLanguage(fname, []byte(data)) lang := enry.GetLanguage(fname, []byte(data))
var rawHTML *template.HTML var rawHTML *template.HTML

View file

@ -1,6 +1,6 @@
{{template "header" .}} {{template "header" .}}
<div class="prose"> <div class="prose">
<p>Hello! You have connected to a private pastebin run by a Tailscale user.</p> <p>Hello! You have connceted to a private pastebin run by a Tailscale user.</p>
<p>If this is your tailnet and you are not expecting to see this page, please connect to your tailnet and try your query again.</p> <p>If this is your tailnet and you are not expecting to see this page, please connect to your tailnet and try your query again.</p>
</div> </div>