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

Add path parameter sanitization #428

Merged
merged 4 commits into from
Jun 25, 2020
Merged

Add path parameter sanitization #428

merged 4 commits into from
Jun 25, 2020

Conversation

sujaygarlanka
Copy link
Contributor

Added path parameter sanitization so no relative paths can be passed (i.e. /../). I did not include this logic in buildURL() in BoxRequest because though this is used for most requests, it is not the only buildURL() method. There are others in the SDK that are used for other requests. So I would have to include the logic in multiple methods if I chose the buildURL() route. The only method all requests used was the send() method in BoxRequest, so I included the sanitization logic here.

PJSimon
PJSimon previously approved these changes Jun 24, 2020
PJSimon
PJSimon previously approved these changes Jun 25, 2020
@sujaygarlanka sujaygarlanka changed the title Added path parameter sanitization Add path parameter sanitization Jun 25, 2020
@sujaygarlanka sujaygarlanka merged commit 87ed722 into master Jun 25, 2020
@sujaygarlanka sujaygarlanka deleted the path-sanitization branch June 25, 2020 22:46
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.

2 participants