[wp-trac] Re: [WordPress Trac] #7270: tilde character encoded by
mod_proxy creates a redirect loop on login
WordPress Trac
wp-trac at lists.automattic.com
Fri Sep 26 08:16:35 GMT 2008
#7270: tilde character encoded by mod_proxy creates a redirect loop on login
----------------------------+-----------------------------------------------
Reporter: hopson | Owner: anonymous
Type: defect | Status: new
Priority: normal | Milestone: 2.7
Component: Administration | Version: 2.5.1
Severity: normal | Resolution:
Keywords: has-patch |
----------------------------+-----------------------------------------------
Changes (by dougieha):
* cc: dougieha at gmail.com (added)
Comment:
It seems that the tilde character causes all sorts of problems. See this
link: http://www.wwco.com/~wls/blog/2006/11/19/wordpress-tilde-hack-for-
home-directories/
I was encountering a problem that I believe is related to this one. I'm
using WP 2.6.2 and every time I start to edit a new post, go to add an
image, and click on either the "Gallery" or "Media Library" tabs, I was
redirected to the wp-login page. Upon attempting to login (which I was
already), I get stuck in the redirect loop. Based on a careful
examination of the links to the two tabs, it looks like the tilde is being
double-escaped. By adding this line:
{{{
$_SERVER['REQUEST_URI'] = preg_replace( "/%7[Ee]/", "~",
$_SERVER['REQUEST_URI'] );
}}}
to wp-settings.php (around line 57, before the IIS fixes), I was able to
solve my problems. Since wp-includes/pluggable.php has changed quite a
bit since 2.5.1 (which is what the current patch is for), I hope this
helps to provide a solution for newer versions.
--
Ticket URL: <http://trac.wordpress.org/ticket/7270#comment:3>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list