JS: whitelist another emptiness check for the type-confusion query

This commit is contained in:
Esben Sparre Andreasen
2019-04-08 09:50:27 +02:00
parent 662ad4b2ca
commit 52d86471af
3 changed files with 14 additions and 1 deletions

View File

@@ -68,4 +68,6 @@ express().get('/some/path/:foo', function(req, res) {
while (p.length) { // OK
p = p.substr(1);
}
p.length < 1; // OK
});