Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Nginx fixes #997

Merged
merged 2 commits into from
Feb 5, 2025
Merged

Nginx fixes #997

merged 2 commits into from
Feb 5, 2025

Conversation

ctrlaltca
Copy link
Member

Recently I had to move some webapps from Apache to Nginx.
While apps working in the main domain folder (eg. www.test.com/) works fine, apps running in a subfolder (eg. www.test.com/app/) has problems in determining the requested page when THttpRequest 's UrlFormat is set to Path or HiddenPath.
This PR contains 2 changes.
The first one adds some fallbacks for determining the requested page path (pathInfo) when the app is using Path or HiddenPath url formats.
The second change adds a urldecode() call to request parameters when the app is using Path or HiddenPath url formats. This is meant to fix a niche problem when using array parameters, aka "repeated parameters" from rfc1738, eg: www.test.com/page,Home/ids[],1/ids[],2/ids[],3
Without the urldecode the square brackets would appear like eg: www.test.com/page,Home/ids%5B%5D,1/ids%5B%5D,2/ids%5B%5D,3

@ctrlaltca ctrlaltca merged commit bc9b409 into master Feb 5, 2025
7 checks passed
@ctrlaltca ctrlaltca deleted the nginx branch February 5, 2025 08:44
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.

1 participant