From 1464a3364fa3469dd37b6b0533c95f0673d39334 Mon Sep 17 00:00:00 2001 From: jverber Date: Sat, 19 Jun 2004 04:23:59 +0000 Subject: [PATCH] Fixes for bugs #0000088-90: fixed encoding of special chars. git-svn-id: http://svn.automattic.com/wordpress/trunk@1438 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-admin/options-general.php | 4 ++-- wp-admin/options-permalink.php | 2 +- wp-admin/options-reading.php | 2 +- wp-includes/functions.php | 4 ++-- wp-includes/vars.php | 2 ++ 5 files changed, 8 insertions(+), 6 deletions(-) diff --git a/wp-admin/options-general.php b/wp-admin/options-general.php index 0d4017cce8..44103c55a6 100644 --- a/wp-admin/options-general.php +++ b/wp-admin/options-general.php @@ -50,11 +50,11 @@ include('options-head.php'); - + - diff --git a/wp-admin/options-permalink.php b/wp-admin/options-permalink.php index 0bfb9bc4ee..85a1fc4133 100644 --- a/wp-admin/options-permalink.php +++ b/wp-admin/options-permalink.php @@ -137,7 +137,7 @@ echo apply_filters('rewrite_rules', $rules);

If your .htaccess file is writable by WordPress, you can edit it through your template interface.

'), 'templates.php?file=.htaccess') ?> - + diff --git a/wp-admin/options-reading.php b/wp-admin/options-reading.php index a785de9efc..2bf5f65603 100644 --- a/wp-admin/options-reading.php +++ b/wp-admin/options-reading.php @@ -74,7 +74,7 @@ include('options-head.php'); diff --git a/wp-includes/functions.php b/wp-includes/functions.php index 9faeb7c52d..14201af249 100644 --- a/wp-includes/functions.php +++ b/wp-includes/functions.php @@ -816,7 +816,7 @@ function doGeoUrlHeader($post_list = '') { $title = $row->post_title; if(($lon != null) && ($lat != null) ) { echo "\n"; - echo "\n"; + echo "\n"; echo "\n"; return; } @@ -824,7 +824,7 @@ function doGeoUrlHeader($post_list = '') { if(get_settings('use_default_geourl')) { // send the default here echo "\n"; - echo "\n"; + echo "\n"; echo "\n"; } } diff --git a/wp-includes/vars.php b/wp-includes/vars.php index e75fff2718..c8f085b813 100644 --- a/wp-includes/vars.php +++ b/wp-includes/vars.php @@ -176,6 +176,8 @@ foreach($wpsmiliestrans as $smiley => $img) { define('COOKIEPATH', preg_replace('|https?://[^/]+|i', '', get_settings('home') . '/' ) ); // Some default filters +add_filter('rewrite_rules','htmlspecialchars'); +add_filter('bloginfo','htmlspecialchars'); add_filter('category_description', 'wptexturize'); add_filter('list_cats', 'wptexturize'); add_filter('comment_author', 'wptexturize');
+

+