Compare commits

..

No commits in common. "aa79df746171792119197e0fab314f279945fb4b" and "1eed8f0e84eeb8fabcc6a19ff0d717d63622431a" have entirely different histories.

View file

@ -574,10 +574,11 @@ func CheckRequest(app *model.AppState, next http.Handler) http.Handler {
return return
} }
// obviously .php requests these don't affect me, but these tend to be // same with .php and awkward double-slash requests.
// lazy wordpress intrusion attempts. if that's what you're about, i // obviously these don't affect me, but these tend to be lazy intrusion
// don't want you on my site. // attempts. if that's what you're about, i don't want you on my site.
if strings.HasSuffix(r.URL.Path, ".php") || if strings.HasPrefix(r.URL.Path, "//") ||
strings.HasSuffix(r.URL.Path, ".php") ||
strings.HasSuffix(r.URL.Path, ".php7") { strings.HasSuffix(r.URL.Path, ".php7") {
http.NotFound(w, r) http.NotFound(w, r)
fmt.Fprintf( fmt.Fprintf(