Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Removed input value from deault_error_message#5881

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
carltongibson merged 4 commits intoencode:masterfromchickahoona:remove-input-value-from-error-message
Apr 20, 2018
Merged

Removed input value from deault_error_message#5881

carltongibson merged 4 commits intoencode:masterfromchickahoona:remove-input-value-from-error-message
Apr 20, 2018

Conversation

@chickahoona
Copy link
Contributor

Its never a good idea to return the provided input in an error message, as it can easily result in an reflected XSS. Imagine someone sends a form with a field like "<script>something evil</script>", you return the value in the error message as it does not pass your serializer and the frontend may not sanitize it proper, as it trusts its own backend. :)

Its never a good idea to return the provided input in an error message, as it can easily result in an reflected XSS. Imagine someone provides sends a form with a field like "<script>something evil</script>", you return the value and the frontend may not sanitize it proper, as it trusts its own backend. :)
@lovelydinosaur
Copy link
Contributor

Looks like there are some tests that’d need updating too. I’d prefer the form “Must be a ...” for the wording.

Signed-off-by: Sascha Pfeiffer <sascha.pfeiffer@psono.com>
@chickahoona
Copy link
ContributorAuthor

chickahoona commentedMar 24, 2018
edited
Loading

Thanks for the ping. Should pass now. I didnt get the "Must be a ... for the wording" thing.

Signed-off-by: Sascha Pfeiffer <sascha.pfeiffer@psono.com>
@lovelydinosaur
Copy link
Contributor

I meant we should use phrasing “Must be a valid boolean” instead of “Is not a valid boolean.”

@carltongibsoncarltongibson added this to the3.8.3 Release milestoneApr 20, 2018
@carltongibsoncarltongibson merged commit7d64b70 intoencode:masterApr 20, 2018
@chickahoonachickahoona deleted the remove-input-value-from-error-message branchApril 20, 2018 15:40
@rpkilbyrpkilby modified the milestones:3.8.3 Release,3.9 ReleaseAug 29, 2018
shanemcd pushed a commit to shanemcd/awx that referenced this pull requestJun 18, 2019
pchiquet pushed a commit to pchiquet/django-rest-framework that referenced this pull requestNov 17, 2020
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

No reviews

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

3.9.0 Release

Development

Successfully merging this pull request may close these issues.

4 participants

@chickahoona@lovelydinosaur@carltongibson@rpkilby

[8]ページ先頭

©2009-2025 Movatter.jp