[wpmu-trac] [WordPress MU Trac] #367: Quotes in blog names causing problems in dashboard switcher.

WordPress MU Trac wpmu-trac at lists.automattic.com
Wed Jun 27 19:45:21 GMT 2007


#367: Quotes in blog names  causing problems in dashboard switcher.
------------------------+---------------------------------------------------
 Reporter:  SteveAtty   |       Owner:  somebody  
     Type:  defect      |      Status:  new       
 Priority:  normal      |   Milestone:  WPMU 2.0  
Component:  component1  |     Version:  2.0       
 Severity:  normal      |    Keywords:  apostrophe
------------------------+---------------------------------------------------
 If a blog name has an apostrophe in it then the dashboard switcher fails
 as the javascript has a mismatched quote.

 To fix it the $blog->blogname in line 81 of dashboardswitcher.php needs
 wrapping in an addslashes function.

 So the line should look like:

 {{{

 $out .= '<li><a href="http://' . $blog->domain . $blog->path . 'wp-
 admin/">' . addslashes($blog->blogname) . '</a></li>';
 }}}

-- 
Ticket URL: <http://trac.mu.wordpress.org/ticket/367>
WordPress MU Trac <http://mu.wordpress.org/>
WordPress Multiuser


More information about the wpmu-trac mailing list