mirror of
https://github.com/jquery/jquery.git
synced 2024-12-09 08:04:24 +00:00
be4f9eccde
`fs.readFileSync` crashes when a non-existing file is passed to it. Some APIs
of `middleware-mockserver` read a file the path of which depends on query
parameters, making it possible to crash it by providing such a parameter. The
old PHP server doesn't have these issues.
To fix this, wrap all `fs.readFileSync` occurrences with a function that falls
back to the string `"ERROR"`.
Closes gh-5579
(cherry picked from commit
|
||
---|---|---|
.. | ||
data | ||
integration | ||
node_smoke_tests | ||
promises_aplus_adapters | ||
runner | ||
unit | ||
delegatetest.html | ||
hovertest.html | ||
index.html | ||
jquery.js | ||
middleware-mockserver.cjs | ||
networkerror.html | ||
xhtml.php |