Ticket #9817 (closed defect (bug): fixed)
wp_login_url() doesn't urlencode() the redirect value
| Reported by: |
|
Owned by: | |
|---|---|---|---|
| Priority: | normal | Milestone: | 2.8 |
| Component: | General | Version: | 2.8 |
| Severity: | normal | Keywords: | has-patch needs-testing |
| 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=bar due to the lack of URL encoding in the redirect_to value.
Attached patch urlencode()'s the value so that the redirect works properly.
Attachments
Change History
comment:1
Viper007Bond — 3 years ago
Hmm, perhaps add_query_arg() should urlencode() instead...
Note: See
TracTickets for help on using
tickets.

