mirror of
https://github.com/github/codeql.git
synced 2025-12-18 18:10:39 +01:00
12 lines
295 B
JavaScript
12 lines
295 B
JavaScript
var express = require('express');
|
|
var app = express();
|
|
|
|
import { JSDOM } from "jsdom";
|
|
app.get('/some/path', function (req, res) {
|
|
// NOT OK
|
|
new JSDOM(req.param("wobble"), { runScripts: "dangerously" });
|
|
|
|
// OK
|
|
new JSDOM(req.param("wobble"), { runScripts: "outside-only" });
|
|
});
|