From 3235902cfff2dab377e31074adaf725424ba139a Mon Sep 17 00:00:00 2001 From: westi Date: Mon, 3 Sep 2007 16:11:10 +0000 Subject: [PATCH] urlencode the theme name and stylesheet name in the activate links so as to support directories with + in the name. Fixes #3279. git-svn-id: http://svn.automattic.com/wordpress/trunk@6016 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-admin/themes.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wp-admin/themes.php b/wp-admin/themes.php index 4f31f806c..a3f6dde7c 100644 --- a/wp-admin/themes.php +++ b/wp-admin/themes.php @@ -69,7 +69,7 @@ foreach ($theme_names as $theme_name) { $author = $themes[$theme_name]['Author']; $screenshot = $themes[$theme_name]['Screenshot']; $stylesheet_dir = $themes[$theme_name]['Stylesheet Dir']; - $activate_link = wp_nonce_url("themes.php?action=activate&template=$template&stylesheet=$stylesheet", 'switch-theme_' . $template); + $activate_link = wp_nonce_url("themes.php?action=activate&template=".urlencode($template)."&stylesheet=".urlencode($stylesheet), 'switch-theme_' . $template); ?>