Opened 14 years ago
Closed 13 years ago
#23266 closed defect (bug) (fixed)
Replace esc_attr() with esc_url() for form action URLs
| Reported by: | SergeyBiryukov | Owned by: | ryan |
|---|---|---|---|
| Priority: | normal | Milestone: | 3.6 |
| Component: | Formatting | Version: | |
| Severity: | normal | Keywords: | has-patch |
| Cc: | Focuses: |
Description
We use esc_attr() for form action URLs in some places. esc_url() should be used instead.
Attachments (1)
Change History (6)
#2
@
14 years ago
- Cc added
+1. Probably wouldn't hurt to rope in some of the others that don't use escaping at all such as in several Multisite files and all over the place really.
I could only find a few instances where esc_url() was used in conjunction with admin_url(), self_admin_url(), site_url() and the like. Not sure if it's even needed.
Here's an ack of the files/lines lacking escaping or misusing esc_attr() as already covered in @SergeyBiryukov's patch: https://gist.github.com/4598774
Note:
See TracTickets
for help on using tickets.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
Related: #20771