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

Adding '\' before a valid PHP variable name solves #284 #285

Closed
wants to merge 1 commit into from

Conversation

honeyyadav
Copy link

Solves #284

Why my solution works :-

My solution is very simple and straight forward, I am just replacing the occurrence of a valid PHP URL with '\' added at the begning. I have tested this code with various test cases and it is working flawlessly.

Adding '\' before a valid PHP variable name in the request URL (finalUrl)
@erdemkose
Copy link

Instead of escaping $ characters, replacing double quotes(") with single quotes(') would be a simpler and cleaner solution. PHP does not look for variables in single-quoted strings.

@webholik
Copy link
Contributor

Fixed by #352.

@webholik webholik closed this Oct 20, 2020
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.

3 participants