Skip to content

Commit

Permalink
Strip path query string (see #73)
Browse files Browse the repository at this point in the history
  • Loading branch information
benvinegar committed Jun 3, 2024
1 parent aeae695 commit c6493a5
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions public/tracker.js
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,8 @@ SOFTWARE.
if (!path) {
path = "/";
}
// strip query string from path
path = path.split("?")[0];

// determine hostname
let hostname = vars.hostname || req.protocol + "//" + req.hostname;
Expand Down

0 comments on commit c6493a5

Please sign in to comment.