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 late escaping to CMB2_Display_File #1262

Merged
merged 3 commits into from Apr 21, 2019

Conversation

mikeselander
Copy link
Collaborator

Description

Picking off some escaping/sanitizing from #1260. This PR late-escapes output from the file_output method of the CMB2_Display_File class. I realize that we're already escaping the URL in https://github.com/CMB2/CMB2/blob/develop/includes/CMB2_Field_Display.php#L397, but late-escaping is preferred and we could possibly get rid of the early-escaping from the link above.

Motivation and Context

Hardening escaping and sanitizing throughout the plugin.

Risk Level

Minimal risk

Testing procedure

Types of changes

  • Bug fix (non-breaking change which fixes an issue)

Checklist:

@jtsternberg jtsternberg merged commit 45432cb into develop Apr 21, 2019
@jtsternberg
Copy link
Member

👍

@jtsternberg jtsternberg deleted the escaping-file-display-class branch April 21, 2019 13:56
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.

None yet

2 participants