mirror of
https://github.com/elicpeter/nyx.git
synced 2026-06-21 20:18:06 +02:00
Performance and precision pass (#64)
This commit is contained in:
parent
c7c5e0f3a1
commit
fb698d2c27
97 changed files with 9932 additions and 517 deletions
|
|
@ -0,0 +1,13 @@
|
|||
// Companion precision guard to path_traversal_ternary_source.js. When
|
||||
// both ternary branches are constant strings, the segment-strip
|
||||
// classifier in `lower_ternary_branch` should not synthesise a Source
|
||||
// label, so the assigned variable carries no taint and the downstream
|
||||
// sink does not fire.
|
||||
const fs = require('fs');
|
||||
const express = require('express');
|
||||
const app = express();
|
||||
|
||||
app.get('/page', (req, res) => {
|
||||
const tier = req.query.premium ? 'premium' : 'standard';
|
||||
fs.readFileSync(`/static/${tier}/index.html`);
|
||||
});
|
||||
Loading…
Add table
Add a link
Reference in a new issue