[wp-trac] [WordPress Trac] #40542: Undefined index in strip_fragment_from_url function

WordPress Trac noreply at wordpress.org
Sun Apr 23 12:39:08 UTC 2017


#40542: Undefined index in strip_fragment_from_url function
--------------------------+-----------------------------
 Reporter:  betterstudio  |      Owner:
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  General       |    Version:  trunk
 Severity:  normal        |   Keywords:
  Focuses:                |
--------------------------+-----------------------------
 There is undefined index in strip_fragment_from_url function for

 {{{#!php
  $parsed_url['path']
 }}}


 path should be checked to be available. Simple check needed:
 {{{#!php
 if ( ! empty( $parsed_url['path'] ) )
 }}}

 file: wp-includes/canonical.php line 570

--
Ticket URL: <https://core.trac.wordpress.org/ticket/40542>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list