We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c49e9e8 commit 7d674e7Copy full SHA for 7d674e7
javascript/ql/src/Security/CWE-918/examples/RequestForgeryGood.js
@@ -1,7 +1,7 @@
1
import http from 'http';
2
3
const server = http.createServer(function(req, res) {
4
- const target = new URL(req.url).searchParams.get("target");
+ const target = new URL(req.url, "http://example.com").searchParams.get("target");
5
6
let subdomain;
7
if (target === 'EU') {
0 commit comments