--- wp-blog-header.php.orig Sun Mar 20 15:55:36 2005 +++ wp-blog-header.php Sun Mar 20 21:49:36 2005 @@ -115,7 +115,18 @@ @header('HTTP/1.x 404 Not Found'); } else if ( empty($feed) ) { @header('X-Pingback: '. get_bloginfo('pingback_url')); - @header('Content-type: ' . get_option('html_type') . '; charset=' . get_option('blog_charset')); + if ( (preg_match("/Gecko|W3C_Validator|MathPlayer/", + $_SERVER["HTTP_USER_AGENT"]) + && !preg_match("/Chimera|Camino|KHTML/", + $_SERVER["HTTP_USER_AGENT"])) + || preg_match("/Camino.*MathML-Enabled/", + $_SERVER["HTTP_USER_AGENT"]) ) { + @header('Content-type: application/xhtml+xml; charset=' + . get_option('blog_charset')); + } else { + @header('Content-type: text/html; charset=' + . get_option('blog_charset')); + } } else { // We're showing a feed, so WP is indeed the only thing that last changed if ( $withcomments ) --- wp-includes/functions-formatting.php.orig Mon Feb 14 18:21:21 2005 +++ wp-includes/functions-formatting.php Sun Mar 20 23:18:20 2005 @@ -40,7 +40,7 @@ } else { $next = true; } - $curl = preg_replace('/&([^#])(?![a-z12]{1,8};)/', '&$1', $curl); + $curl = preg_replace('/&([^#])(?![a-z12]+;)/i', '&$1', $curl); $output .= $curl; } return $output; @@ -57,20 +57,20 @@ $pee = $pee . "\n"; // just to make things a little easier, pad the end $pee = preg_replace('|
\s*
|', "\n\n", $pee); // Space things out a little - $pee = preg_replace('!(<(?:table|thead|tfoot|caption|colgroup|tbody|tr|td|th|div|dl|dd|dt|ul|ol|li|pre|select|form|blockquote|math|p|h[1-6])[^>]*>)!', "\n$1", $pee); - $pee = preg_replace('!()!', "$1\n", $pee); + $pee = preg_replace('!(<(?:table|thead|tfoot|caption|colgroup|tbody|tr|td|th|div|dl|dd|dt|ul|ol|li|pre|select|form|blockquote|p|h[1-6])[^>]*>)!', "\n$1", $pee); + $pee = preg_replace('!()!', "$1\n", $pee); $pee = str_replace(array("\r\n", "\r"), "\n", $pee); // cross-platform newlines $pee = preg_replace("/\n\n+/", "\n\n", $pee); // take care of duplicates $pee = preg_replace('/\n?(.+?)(?:\n\s*\n|\z)/s', "\t

$1

\n", $pee); // make paragraphs, including one at the end $pee = preg_replace('|

\s*?

|', '', $pee); // under certain strange conditions it could create a P of entirely whitespace - $pee = preg_replace('!

\s*(]*>)\s*

!', "$1", $pee); // don't pee all over a tag + $pee = preg_replace('!

\s*(]*>)\s*

!', "$1", $pee); // don't pee all over a tag $pee = preg_replace("|

(|", "$1", $pee); // problem with nested lists $pee = preg_replace('|

]*)>|i', "

", $pee); $pee = str_replace('

', '

', $pee); - $pee = preg_replace('!

\s*(]*>)!', "$1", $pee); - $pee = preg_replace('!(]*>)\s*

!', "$1", $pee); + $pee = preg_replace('!

\s*(]*>)!', "$1", $pee); + $pee = preg_replace('!(]*>)\s*

!', "$1", $pee); if ($br) $pee = preg_replace('|(?)\s*\n|', "
\n", $pee); // optionally make line breaks - $pee = preg_replace('!(]*>)\s*
!', "$1", $pee); + $pee = preg_replace('!(]*>)\s*
!', "$1", $pee); $pee = preg_replace('!
(\s*)!', '$1', $pee); $pee = preg_replace('!()(.*?)!ise', " stripslashes('$1') . clean_pre('$2') . '' ", $pee); @@ -97,7 +97,7 @@ function wp_specialchars( $text, $quotes = 0 ) { // Like htmlspecialchars except don't double-encode HTML entities - $text = preg_replace('/&([^#])(?![a-z12]{1,8};)/', '&$1', $text);- + $text = preg_replace('/&([^#])(?![a-z12]+;)/i', '&$1', $text);- $text = str_replace('<', '<', $text); $text = str_replace('>', '>', $text); if ( $quotes ) { @@ -282,7 +282,7 @@ $content = preg_replace('/(.+?)<\/category>/','',$content); // Converts lone & characters into & (a.k.a. &) - $content = preg_replace('/&([^#])(?![a-z]{1,8};)/i', '&$1', $content); + $content = preg_replace('/&([^#])(?![a-z]+;)/i', '&$1', $content); // Fix Word pasting $content = strtr($content, $wp_htmltranswinuni); --- wp-content/plugins/textile1.php.orig Mon Apr 19 03:31:30 2004 +++ wp-content/plugins/textile1.php Sun Mar 20 12:12:56 2005 @@ -218,15 +218,17 @@ foreach($text as $line){ if(preg_match('/
/i',$line)){$pre = true; }
+			if(preg_match('/","\n",$line);
 			}
-				if(preg_match('/<\/pre>/i',$line)){$pre = false; }
+				if(preg_match('/<\/pre>/i',$line)){$pre = false;}
+				if(preg_match('/<\/math>/i',$line)){$math = false;}
 
 			if ($list == '' && preg_match('/^\t\t
  • /',$line)){ $list = "ul"; --- wp-content/themes/default/header.php.orig Sun Feb 13 22:36:57 2005 +++ wp-content/themes/default/header.php Sun Mar 20 22:04:01 2005 @@ -1,4 +1,12 @@ - +\n"; +} +?> + --- wp-content/themes/classic/header.php.orig Sun Feb 13 22:36:57 2005 +++ wp-content/themes/classic/header.php Sun Mar 20 23:22:54 2005 @@ -1,8 +1,15 @@ - +\n"; +} +?> + - <?php bloginfo('name'); ?><?php wp_title(); ?>