Index: wp-includes/theme.php
===================================================================
--- wp-includes/theme.php	(revision 6597)
+++ wp-includes/theme.php	(working copy)
@@ -83,7 +83,7 @@
 		$author_uti = '';
 
 	if ( preg_match( '|Template:(.*)$|mi', $theme_data, $template ) )
-		$template = wp_kses( trim( $template[1], $themes_allowed_tags ) );
+		$template = wp_kses( trim( $template[1] ), $themes_allowed_tags );
 	else
 		$template = '';
 
