Skip to content

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.

3 participants