Skip to content

Conversation

@RDIL
Copy link
Member

@RDIL RDIL commented Apr 28, 2025

Scope

Fixes #580

When we upgraded express to v5, we also updated the path-to-regexp package, which is less permissive then it used to be. As a result, when the game requested the malformed URL /profiles/page//Hub, it wasn't matching any route. This PR solves this by adding a middleware to fix any invalid URLs that the game tries to throw at us.

Test Plan

Log in on 2016 and confirm everything works properly.

Checklist

  • I have run Prettier to reformat any changed files
  • I have verified my changes work

@RDIL RDIL requested a review from AnthonyFuller April 28, 2025 22:25
@AnthonyFuller AnthonyFuller merged commit 2298ea6 into master Apr 28, 2025
4 checks passed
@AnthonyFuller AnthonyFuller deleted the reece/fix-bad-paths branch April 28, 2025 23:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

HITMAN 2016 support is broken on v8 alphas and master

3 participants