[wp-trac] [WordPress Trac] #17047: Not following spec for REQUEST_URI
WordPress Trac
wp-trac at lists.automattic.com
Wed Aug 31 22:52:55 UTC 2011
#17047: Not following spec for REQUEST_URI
---------------------------+-----------------------------
Reporter: sterlo | Owner: sterlo
Type: defect (bug) | Status: reviewing
Priority: normal | Milestone: Future Release
Component: Rewrite Rules | Version: 3.1
Severity: normal | Resolution:
Keywords: has-patch |
---------------------------+-----------------------------
Comment (by SergeyBiryukov):
Replying to [comment:8 duck_]:
> > Probably best just wraping it in an if, if strpos(HTTP_HOST) !==
false, then preg_replace.
>
> {{{if ( $_SERVER['REQUEST_URI'][0] != '/' )}}}
Added a patch with that condition.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/17047#comment:11>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list