#7074 closed defect (bug) (fixed)
Templates should utilize esc_attr when setting a link title attribute to bp_group_name
| Reported by: | garrett-eclipse | Owned by: | boonebgorges |
|---|---|---|---|
| Priority: | normal | Milestone: | 2.6 |
| Component: | Groups | Version: | 2.5.0 |
| Severity: | normal | Keywords: | |
| Cc: |
Description
Hello,
I noticed in group-header.php and I'm sure it's in several other places, that the bp_group_name is being applied to the title attribute of a link without any handling, should employ esc_attr.
<a href="<?php bp_group_permalink(); ?>" title="<?php bp_group_name(); ?>">
Should be pushed through esc_attr either in the template by using bp_get_group_name instead or by creating a new bp_group_name_attr function.
Thanks
Change History (5)
Note:
See TracTickets
for help on using tickets.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
Thanks, @garrett-eclipse. If you spot other instances of this, please feel free to submit a ticket.