User tests: Successful: Unsuccessful:
Pull Request resolves # .
when escaping the title of a feed we used two different styles
// Strip html from feed item title
$title = htmlspecialchars($row->title, ENT_QUOTES, 'UTF-8');
$title = html_entity_decode($title, ENT_COMPAT, 'UTF-8');
// Strip HTML from feed item title
$title = $this->escape($item->core_title);
$title = html_entity_decode($title, ENT_COMPAT, 'UTF-8');
$this->escape is a shorthand for htmlspecialchars, so both variants have the exact same effect- no security implications.
for code consistency this PR makes all 4 use the same codestyle `this->escape
code review
Please select:
Documentation link for guide.joomla.org:
No documentation changes for guide.joomla.org needed
Pull Request link for manual.joomla.org:
No documentation changes for manual.joomla.org needed
| Status | New | ⇒ | Pending |
| Category | ⇒ | Front End com_content Libraries |
| Status | Pending | ⇒ | Closed |
| Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2026-10-09 14:24:37 |
| Closed_By | ⇒ | brianteeman | |
| Labels |
Added:
PR-6.2-dev
|
||