diff options
Diffstat (limited to 'pkg')
| -rw-r--r-- | pkg/html/pages/stats.go | 4 | ||||
| -rw-r--r-- | pkg/manager/html/common.html | 4 | ||||
| -rw-r--r-- | pkg/manager/http.go | 6 |
3 files changed, 7 insertions, 7 deletions
diff --git a/pkg/html/pages/stats.go b/pkg/html/pages/stats.go index 855ad0af8..45b75ade6 100644 --- a/pkg/html/pages/stats.go +++ b/pkg/html/pages/stats.go @@ -21,7 +21,7 @@ func StatsHTML() (template.HTML, error) { return template.HTML(buf.String()), nil } -var statsTemplate = Create(statsHtml) +var statsTemplate = Create(statsHTML) //go:embed stats.html -var statsHtml string +var statsHTML string diff --git a/pkg/manager/html/common.html b/pkg/manager/html/common.html index 6a8599902..ea76b5a63 100644 --- a/pkg/manager/html/common.html +++ b/pkg/manager/html/common.html @@ -19,10 +19,10 @@ Use of this source code is governed by Apache 2 LICENSE that can be found in the <td> <form action="/action" method="post"> <input type="hidden" name="url" value="{{.CurrentURL}}" /> - <button type="submit" name="action" value="toggle-expert" class="action_button{{if .ExpertMode}}_selected{{end}}" title="Toggle expert mode"> + <button type="submit" name="toggle" value="expert" class="action_button{{if .ExpertMode}}_selected{{end}}" title="Toggle expert mode"> π§ </input> - <button type="submit" name="action" value="pause-unpause" class="action_button{{if .Paused}}_selected{{end}}" title="Pause/unpause fuzzing"> + <button type="submit" name="toggle" value="pause" class="action_button{{if .Paused}}_selected{{end}}" title="Pause/unpause fuzzing"> {{if .Paused}}βΆοΈ{{else}}βΈοΈ{{end}} </input> </form> diff --git a/pkg/manager/http.go b/pkg/manager/http.go index ec151c9b9..65407ec90 100644 --- a/pkg/manager/http.go +++ b/pkg/manager/http.go @@ -113,10 +113,10 @@ func (serv *HTTPServer) Serve() { } func (serv *HTTPServer) httpAction(w http.ResponseWriter, r *http.Request) { - switch r.FormValue("action") { - case "toggle-expert": + switch r.FormValue("toggle") { + case "expert": serv.expertMode = !serv.expertMode - case "pause-unpause": + case "pause": if serv.TogglePause == nil { http.Error(w, "pause is not implemented", http.StatusNotImplemented) return |
