diff --git a/ChangeLog b/ChangeLog index fb3e2af2b..289971602 100755 --- a/ChangeLog +++ b/ChangeLog @@ -28,6 +28,7 @@ $Source$ error.php if this fails too - moved loading of extension out of libraries/dbi/* into libraries/database_interface.lib.php + * libraries/sanitizing.lib.php: dont use deprecated tags 2005-11-16 Marc Delisle * tbl_properties_links.php: missing menu tabs diff --git a/libraries/sanitizing.lib.php b/libraries/sanitizing.lib.php index c001a85f0..b36af285a 100644 --- a/libraries/sanitizing.lib.php +++ b/libraries/sanitizing.lib.php @@ -15,16 +15,24 @@ function PMA_sanitize($message) { $replace_pairs = array( - '<' => '<', - '>' => '>', - '[i]' => '', - '[/i]' => '', - '[b]' => '', - '[/b]' => '', - '[tt]' => '', - '[/tt]' => '', - '[br]' => '
', - '[/a]' => '', + '<' => '<', + '>' => '>', + '[i]' => '', // deprecated by em + '[/i]' => '', // deprecated by em + '[em]' => '', + '[/em]' => '', + '[b]' => '', // deprecated by strong + '[/b]' => '', // deprecated by strong + '[strong]' => '', + '[/strong]' => '', + '[tt]' => '', // deprecated by CODE or KBD + '[/tt]' => '', // deprecated by CODE or KBD + '[code]' => '', + '[/code]' => '', + '[kbd]' => '', + '[/kbd]' => '', + '[br]' => '
', + '[/a]' => '', ); return preg_replace('/\[a@([^"@]*)@([^]"]*)\]/', '', strtr($message, $replace_pairs)); }