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

Query params are transformed to lowercase in URLHelper::get_params() #2507

Closed
peterkracik opened this issue Oct 3, 2021 · 2 comments
Closed

Comments

@peterkracik
Copy link
Contributor

Hi,

I am using URLHelper::get_params() to get parameters, but they are returned in lowercase.
In my case, I would need to have them case-sensitive. My URL contains an ID similar to this one 8chr5ULa which is then used for query and external API and the id in lowercase throws an error.
I saw you call the strtolower and I was wondering if there is a reason for it, or it could be removed.

version: 1.18
but I can see, that the behaviour is the same on v2.

$uri = trim(strtolower($_SERVER['REQUEST_URI']));

@kevin-quach
Copy link

I second this request as I use this for routing a deeplink which is case sensitive.

@Levdbas
Copy link
Member

Levdbas commented Jan 27, 2024

Pr is merged and will be included in next 2.x release.

@Levdbas Levdbas closed this as completed Jan 27, 2024
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

No branches or pull requests

3 participants