mirror of https://github.com/gophish/gophish
Now returning valid tracking image. Fixes #202
parent
52b9eda3b2
commit
b10c4b3d3a
|
@ -113,7 +113,7 @@ func PhishTracker(w http.ResponseWriter, r *http.Request) {
|
|||
// Don't update the status if the user already clicked the link
|
||||
// or submitted data to the campaign
|
||||
if rs.Status == models.STATUS_SUCCESS {
|
||||
w.Write([]byte(""))
|
||||
http.ServeFile(w, r, "static/images/pixel.png")
|
||||
return
|
||||
}
|
||||
err = rs.UpdateStatus(models.EVENT_OPENED)
|
||||
|
@ -134,7 +134,7 @@ func PhishTracker(w http.ResponseWriter, r *http.Request) {
|
|||
if err != nil {
|
||||
Logger.Println(err)
|
||||
}
|
||||
w.Write([]byte(""))
|
||||
http.ServeFile(w, r, "static/images/pixel.png")
|
||||
}
|
||||
|
||||
// PhishHandler handles incoming client connections and registers the associated actions performed
|
||||
|
|
Binary file not shown.
After Width: | Height: | Size: 95 B |
Loading…
Reference in New Issue