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

WordPress Trac wp-trac at lists.automattic.com
Tue Apr 5 03:27:21 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 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.

 Could also just use 2 static string replacements https://HOST and
 http://HOST

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


More information about the wp-trac mailing list