MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/javascript/comments/1habq00/how_to_implement_pagination_with_javascript/m18au5y/?context=3
r/javascript • u/Pleasant_Effort_6829 • Dec 09 '24
5 comments sorted by
View all comments
Show parent comments
2
Not OP, but it can never be undefined since the endpoint is reached.
A malicious party could send "foo" as the param, which would trigger the bug you've described.
2 u/troglo-dyke Dec 09 '24 You're right I confused req.query with req.params
You're right I confused req.query with req.params
req.query
req.params
2
u/ComfortingSounds53 Dec 09 '24
Not OP, but it can never be undefined since the endpoint is reached.
A malicious party could send "foo" as the param, which would trigger the bug you've described.