summaryrefslogtreecommitdiffstats
path: root/wp-content
diff options
context:
space:
mode:
authordonncha <donncha@7be80a69-a1ef-0310-a953-fb0f7c49ff36>2007-08-08 08:32:01 +0000
committerdonncha <donncha@7be80a69-a1ef-0310-a953-fb0f7c49ff36>2007-08-08 08:32:01 +0000
commit5a222cbb7f09bbf7812dfcaf34f0356b4a20ad2c (patch)
tree54dd183f21e79bd00d7565664f3cf2eb3c620d0d /wp-content
parentf18cbe5610c329d60c795037ededfbb2363618f3 (diff)
downloadwordpress-mu-5a222cbb7f09bbf7812dfcaf34f0356b4a20ad2c.tar.gz
wordpress-mu-5a222cbb7f09bbf7812dfcaf34f0356b4a20ad2c.tar.xz
wordpress-mu-5a222cbb7f09bbf7812dfcaf34f0356b4a20ad2c.zip
Add slashes to blogname to protecet apostrophes, fixes #367, props steveatty
git-svn-id: http://svn.automattic.com/wordpress-mu/trunk@1027 7be80a69-a1ef-0310-a953-fb0f7c49ff36
Diffstat (limited to 'wp-content')
-rw-r--r--wp-content/mu-plugins/dashboardswitcher.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/wp-content/mu-plugins/dashboardswitcher.php b/wp-content/mu-plugins/dashboardswitcher.php
index c3d7b9a..36f1f4c 100644
--- a/wp-content/mu-plugins/dashboardswitcher.php
+++ b/wp-content/mu-plugins/dashboardswitcher.php
@@ -78,7 +78,7 @@ function add_switcher() {
$out .= '<ul id="switchermenu">';
$blogs = get_blogs_of_user($current_user->ID);
if ( ! empty($blogs) ) foreach ( $blogs as $blog ) {
- $out .= '<li><a href="http://' . $blog->domain . $blog->path . 'wp-admin/">' . $blog->blogname . '</a></li>';
+ $out .= '<li><a href="http://' . $blog->domain . $blog->path . 'wp-admin/">' . addslashes( $blog->blogname ) . '</a></li>';
}
$out .= "</ul>";
?>