Opened 17 years ago
Closed 17 years ago
#9817 closed defect (bug) (fixed)
wp_login_url() doesn't urlencode() the redirect value
| Reported by: | Viper007Bond | Owned by: | |
|---|---|---|---|
| Priority: | normal | Milestone: | 2.8 |
| Component: | General | Version: | 2.8 |
| Severity: | normal | Keywords: | has-patch needs-testing |
| Cc: | Focuses: |
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.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
Hmm, perhaps
add_query_arg()shouldurlencode()instead...