Conversation
This includes a specific fix provided via H1 - thanks, b4shu206! Fixes #19.
There was a problem hiding this comment.
Pull request overview
This PR addresses Issue #19 by escaping HTML output in the Debug_Bar_WP_Query panel class to prevent potential XSS vulnerabilities. All dynamic values passed to echo in the render() method and the _recursive_print_kv() helper method are now wrapped with esc_html().
Changes:
- Dynamic values in
render()(Queried Object ID, Query Type, Show on Front, Page for Posts, Page on Front, Post Type) are now escaped withesc_html(). - Keys and scalar values in
_recursive_print_kv()are now escaped withesc_html().
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Contributor
Author
This was done here: c7bad83 |
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
This includes a specific fix provided via H1 - thanks, b4shu206!
Fixes #19.