Skip to content

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

Closed
5xdev wants to merge 1 commit intopostmanlabs:developfrom
5xdev:develop
Closed

Adding '\' before a valid PHP variable name solves #284#285
5xdev wants to merge 1 commit intopostmanlabs:developfrom
5xdev:develop

Conversation

@5xdev
Copy link

@5xdev 5xdev commented Jun 14, 2020

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