mirror of
https://github.com/httpjamesm/AnonymousOverflow.git
synced 2024-12-06 19:16:43 +01:00
Compare commits
5 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 95df8a715b | |||
| f2b369b2c6 | |||
| 17a8c6b1e1 | |||
| be9380ba20 | |||
| e4d429b642 |
+1
-1
@@ -1,3 +1,3 @@
|
||||
package config
|
||||
|
||||
var Version = "1.3.2"
|
||||
var Version = "1.3.4"
|
||||
|
||||
@@ -25,15 +25,6 @@ func ViewQuestion(c *gin.Context) {
|
||||
client := resty.New()
|
||||
|
||||
questionId := c.Param("id")
|
||||
if len(questionId) < 8 {
|
||||
c.HTML(400, "home.html", gin.H{
|
||||
"errorMessage": "Invalid question ID",
|
||||
"theme": c.MustGet("theme").(string),
|
||||
"version": config.Version,
|
||||
})
|
||||
return
|
||||
}
|
||||
|
||||
if _, err := strconv.Atoi(questionId); err != nil {
|
||||
c.HTML(400, "home.html", gin.H{
|
||||
"errorMessage": "Invalid question ID",
|
||||
|
||||
+1
-1
@@ -40,7 +40,7 @@
|
||||
<p><b>Error</b>: {{ .errorMessage }}</p>
|
||||
</div>
|
||||
{{end}} {{ end }}
|
||||
<form method="POST">
|
||||
<form method="POST" action="/">
|
||||
<div class="view-form">
|
||||
<input
|
||||
class="view-input"
|
||||
|
||||
Reference in New Issue
Block a user