[wp-trac] [WordPress Trac] #15209: $_SERVER['REQUEST_URI'] Doesn't always work correctly

WordPress Trac wp-trac at lists.automattic.com
Sun Dec 19 20:51:01 UTC 2010


#15209: $_SERVER['REQUEST_URI'] Doesn't always work correctly
--------------------------+-------------------------
 Reporter:  RanY          |       Owner:
     Type:  defect (bug)  |      Status:  closed
 Priority:  normal        |   Milestone:
Component:  General       |     Version:
 Severity:  normal        |  Resolution:  worksforme
 Keywords:                |
--------------------------+-------------------------

Comment (by kirkpatrick):

 A workaround:
 {{{ list($clean_url) = explode("?",$_SERVER["REQUEST_URI"]); }}}

 Use {{{ $clean_url }}} in place of {{{ $_SERVER["REQUEST_URI"] }}}

 This works for the presented problem.  There may be other issues arising
 from this bug, though.

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


More information about the wp-trac mailing list