You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@shreys7 were the sanitize functions already written? Also, what would be the correct curl command for curl http://httpbin.org/get?a=a"b'c?
So, we already had sanitize functions, which basically takes care of escaping a single quote inside a single quote, and the same for double quotes. The sanitization part was present in headers, bodies, etc. But some languages did not have sanitisation of URLs.
for curl http://httpbin.orf/get?a=a"b'c => we put the URL in quotes, and after proper escaping cURL command would look like curl 'http://httpbin.org/get?a=a"b'\''c'
Note: to escape a single quote within a single quote we need to replace a single quote with '\'' for cURL(shell)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes postmanlabs/postman-app-support#8674
Single/double quotes were not handled correctly in some of the languages.
Languages affected: