[wp-trac] [WordPress Trac] #4873: visitor redirected to 404 after
logging in for comment
WordPress Trac
wp-trac at lists.automattic.com
Thu Aug 30 15:25:49 GMT 2007
#4873: visitor redirected to 404 after logging in for comment
----------------------+-----------------------------------------------------
Reporter: eightize | Owner: anonymous
Type: defect | Status: new
Priority: normal | Milestone: 2.4 (next)
Component: General | Version:
Severity: normal | Keywords: comment login redirect error
----------------------+-----------------------------------------------------
When a directory in the path to wordpress contains an unusual character,
such as +, the redirect after a visitor logs in to post a comment strips
that character out of the path name, so user ends up at the 404 not found
page.
to reproduce the error:
1. make the directory for wordpress contain a + character, and set
wordpress to require visitors to register in order to post comments.:
www.site.com/test+folder/
2. go to post a comment (you must be logged out first).
3. after entering username and password, the page is redirected to
www.site.com/testfolder/?p=xx (the + is stripped).
i believe i resolved the error on my site by correcting the regular
expression in wp_redirect() in the file wp-includes/pluggable.php.
a diff is attached to this post.
--
Ticket URL: <http://trac.wordpress.org/ticket/4873>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list