diff --git a/netmon.cc b/netmon.cc index 76a6280..ee533e8 100644 --- a/netmon.cc +++ b/netmon.cc @@ -308,7 +308,7 @@ HTTPRedirChecker::HTTPRedirChecker(sol::table data) : Checker(data) d_fromhostpart = fromurl; else { d_fromhostpart = fromurl.substr(0, pos); - d_frompath = fromurl.substr(pos+1); + d_frompath = fromurl.substr(pos); } d_tourl = data.get("toUrl");