mirror of https://github.com/gophish/gophish
Modified frontend reporting logic to be more flexible with campaigns that include a path in their URL.
Fixes #1985pull/2060/head
parent
0b2ab68f8d
commit
c1d3c7cd75
File diff suppressed because one or more lines are too long
|
@ -933,9 +933,9 @@ function report_mail(rid, cid) {
|
|||
}).then(function (result) {
|
||||
if (result.value){
|
||||
api.campaignId.get(cid).success((function(c) {
|
||||
report_url = c.url;
|
||||
report_url += report_url.endsWith("/") ? "" : "/";
|
||||
report_url += "report?rid=" + rid;
|
||||
report_url = new URL(c.url)
|
||||
report_url.pathname = '/report'
|
||||
report_url.search = "?rid=" + rid
|
||||
$.ajax({
|
||||
url: report_url,
|
||||
method: "GET",
|
||||
|
|
Loading…
Reference in New Issue