[wp-trac] [WordPress Trac] #30417: In multisite, Siteurl and Home url break when updating path via site-info.php and leaving off a leading slash

WordPress Trac noreply at wordpress.org
Mon Jan 12 01:56:06 UTC 2015


#30417: In multisite, Siteurl and Home url break when updating path via site-
info.php and leaving off a leading slash
-------------------------------------+------------------------------
 Reporter:  earnjam                  |       Owner:  jeremyfelt
     Type:  defect (bug)             |      Status:  closed
 Priority:  normal                   |   Milestone:  Awaiting Review
Component:  Networks and Sites       |     Version:  3.1
 Severity:  normal                   |  Resolution:  fixed
 Keywords:  has-patch needs-testing  |     Focuses:  multisite
-------------------------------------+------------------------------
Changes (by jeremyfelt):

 * owner:   => jeremyfelt
 * status:  new => closed
 * resolution:   => fixed


Comment:

 In [changeset:"31156"]:
 {{{
 #!CommitTicketReference repository="" revision="31156"
 Update `home` and `siteurl` after path slashes are validated in
 `update_blog_details()`

 When editing a site, if `home` and `siteurl` are checked to be updated
 along with a site's domain and path, they should receive the results of
 any modifications in `update_blog_details()` rather than trusting the POST
 data.

 Previously, it was possible to save a value without a leading slash on the
 path, causing an invalid URL to be stored.

 Props earnjam.

 Fixes #30417.
 }}}

--
Ticket URL: <https://core.trac.wordpress.org/ticket/30417#comment:3>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list