Opened 17 years ago
Closed 17 years ago
#9817 closed defect (bug) (fixed)
wp_login_url() doesn't urlencode() the redirect value
| Reported by: |
|
Owned by: | |
|---|---|---|---|
| Milestone: | 2.8 | Priority: | normal |
| Severity: | normal | Version: | 2.8 |
| Component: | General | Keywords: | has-patch needs-testing |
| Focuses: | Cc: |
Description
To reproduce:
- Log out of your dev blog.
- Visit
http://yoursite.com/wp-admin/index.php?foo=bar&test=ing&word=press.
- You will be redirected to
http://yoursite.com/wp-login.php?redirect_to=http://yoursite.com/wp-admin/index.php?foo=bar&test=ing&word=press.
- After logging in, you will end up at
http://yoursite.com/wp-admin/index.php?foo=bardue to the lack of URL encoding in theredirect_tovalue.
Attached patch urlencode()'s the value so that the redirect works properly.
Attachments (1)
Change History (4)
Note: See
TracTickets for help on using
tickets.
Hmm, perhaps
add_query_arg()shouldurlencode()instead...