[wp-trac] [WordPress Trac] #17047: Not following spec for REQUEST_URI
WordPress Trac
wp-trac at lists.automattic.com
Tue Apr 5 03:26:14 UTC 2011
#17047: Not following spec for REQUEST_URI
---------------------------+------------------------
Reporter: sterlo | Owner: sterlo
Type: defect (bug) | Status: reviewing
Priority: normal | Milestone: 3.2
Component: Rewrite Rules | Version: 3.1
Severity: normal | Resolution:
Keywords: has-patch |
---------------------------+------------------------
Comment (by sterlo):
Replying to [comment:5 nacin]:
> Sounds like this might fix a number of problems that we've attributed to
issues with server configuration.
>
> It'd be nice to do this without a regex. Perhaps an str_replace using
HTTP_HOST.
I wanted to avoid the assumption that the domain would not be used
anywhere else in the URI.
For instance: "http://www.mysite.com/wp-content/uploads/www.mysite.com-
screenshot.jpg" - this could cause problems.
With the regular expression, it says "See if you can find the HTTP_HOST
value with http OR https and remove those - but only if that are at the
beginning of the URI".
--
Ticket URL: <http://core.trac.wordpress.org/ticket/17047#comment:6>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list