Skip to content

Commit c49e9e8

Browse files
fix: use let for subdomain assignment
1 parent a453405 commit c49e9e8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

javascript/ql/src/Security/CWE-918/examples/RequestForgeryGood.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import http from 'http';
33
const server = http.createServer(function(req, res) {
44
const target = new URL(req.url).searchParams.get("target");
55

6-
const subdomain;
6+
let subdomain;
77
if (target === 'EU') {
88
subdomain = "europe"
99
} else {

0 commit comments

Comments
 (0)