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