mirror of
https://github.com/github/codeql.git
synced 2026-04-30 11:15:13 +02:00
Update RequestForgeryGood.js
This commit is contained in:
@@ -1,10 +1,9 @@
|
||||
import http from 'http';
|
||||
import url from 'url';
|
||||
|
||||
var server = http.createServer(function(req, res) {
|
||||
var target = url.parse(req.url, true).query.target;
|
||||
const server = http.createServer(function(req, res) {
|
||||
const target = new URL(req.url).searchParams.get("target");
|
||||
|
||||
var subdomain;
|
||||
const subdomain;
|
||||
if (target === 'EU') {
|
||||
subdomain = "europe"
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user