[wp-trac] [WordPress Trac] #17047: Not following spec for REQUEST_URI

WordPress Trac wp-trac at lists.automattic.com
Tue Apr 5 09:02:48 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 duck_):

 Replying to [comment:7 dd32]:
 > > It'd be nice to do this without a regex. Perhaps an str_replace using
 HTTP_HOST.
 >
 > Probably best just wraping it in an if, if strpos(HTTP_HOST) !== false,
 then preg_replace.

 {{{if ( $_SERVER['REQUEST_URI'][0] != '/' )}}}

 I assume we're expecting it to begin with '/'.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/17047#comment:8>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list