Skip to content

Commit

Permalink
Upload only one path, simplify
Browse files Browse the repository at this point in the history
  • Loading branch information
timokoessler committed Dec 9, 2024
1 parent 7b806dc commit 8c403cc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion library/agent/Agent.ts
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ export class Agent {
module: module,
operation: operation,
blocked: blocked,
path: paths.join(),
path: paths.length > 0 ? paths[0] : "",
stack: stack,
source: source,
metadata: limitLengthMetadata(metadata, 4096),
Expand Down
2 changes: 1 addition & 1 deletion library/vulnerabilities/ssrf/isRequestToItself.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ export function isRequestToItself({

if (path === ".origin" || path === ".referer") {
const url = tryParseURL(str);
if (!!url && url.host === `localhost:${port}`) {
if (url && url.host === `localhost:${port}`) {
ignoredPaths++;
}
}
Expand Down

0 comments on commit 8c403cc

Please sign in to comment.