[wp-trac] [WordPress Trac] #18117: get_blog_details is sensitive to path's trailing slash

WordPress Trac noreply at wordpress.org
Thu Sep 5 20:58:41 UTC 2013


#18117: get_blog_details is sensitive to path's trailing slash
-----------------------------+------------------------------
 Reporter:  mitchoyoshitaka  |       Owner:
     Type:  defect (bug)     |      Status:  new
 Priority:  normal           |   Milestone:  Awaiting Review
Component:  Multisite        |     Version:  3.0
 Severity:  normal           |  Resolution:
 Keywords:  2nd-opinion      |
-----------------------------+------------------------------

Comment (by jeremyfelt):

 [attachment:18117.diff] corrects the out of control slashes on `site-
 info.php`

 1. Moves the capture of `$_POST['blog']` data via `wp_unslash()` further
 up the file
 1. Removes leading and trailing forward slashes from domain
 1. Ensures leading and trailing forward slashes on path
 1. Allows for clean display of URL and URL parts at `site-info.php`, clean
 URLs stored in `siteurl` and `home`, and clean DB entries in the blogs
 table.

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


More information about the wp-trac mailing list