-
-
Notifications
You must be signed in to change notification settings - Fork 3.7k
[next batch] Always use htmlspecialchars($str, ENT_COMPAT, 'UTF-8') #10424
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
Conversation
| </dt> | ||
| <dd> | ||
| <?php echo $this->data->name; ?> | ||
| <?php echo htmlspecialchars($this->data->name, ENT_COMPAT, 'UTF-8'); ?> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
showing my ignorance perhaps but why did you add it to this one. surely it has already been filtered
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
reverted.
|
@zero-24 see zero-24#15 |
|
seems fine to me now. |
| $bootstrapSize = (int) $params->get('bootstrap_size'); | ||
| $moduleClass = ($bootstrapSize) ? ' span' . $bootstrapSize : ''; | ||
| $headerTag = htmlspecialchars($params->get('header_tag', 'h2')); | ||
| $headerTag = htmlspecialchars($params->get('header_tag', 'h2'), ENT_COMPAT, 'UTF-8'); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
is this in the right place?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yes
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ok thanks
|
I have tested this item ✅ successfully on c642195 This comment was created with the J!Tracker Application at issues.joomla.org/joomla-cms/10424. |
|
I have tested this item ✅ successfully on c642195 This comment was created with the J!Tracker Application at issues.joomla.org/joomla-cms/10424. |
|
RTC This comment was created with the J!Tracker Application at issues.joomla.org/joomla-cms/10424. |
|
Thanks everybody |
Pull Request for Issue #10399 .
Summary of Changes
Always use htmlspecialchars($str, ENT_COMPAT, 'UTF-8')
Testing Instructions
Please review or test every file. Thanks