Opened 4 months ago
Closed 2 months ago
#23266 closed defect (bug) (fixed)
Replace esc_attr() with esc_url() for form action URLs
| Reported by: |
|
Owned by: |
|
|---|---|---|---|
| Priority: | normal | Milestone: | 3.6 |
| Component: | Formatting | Version: | |
| Severity: | normal | Keywords: | has-patch |
| Cc: | DrewAPicture |
Description
We use esc_attr() for form action URLs in some places. esc_url() should be used instead.
Attachments (1)
Change History (6)
SergeyBiryukov — 4 months ago
comment:1
SergeyBiryukov — 4 months ago
comment:2
DrewAPicture — 4 months ago
- Cc DrewAPicture 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
comment:3
SergeyBiryukov — 4 months ago
Related: #23334
comment:4
SergeyBiryukov — 3 months ago
Related: [22520]
Note: See
TracTickets for help on using
tickets.

Related: #20771