diff --git a/libraries/sanitizing.lib.php b/libraries/sanitizing.lib.php
index d64ace626c..83f5c818ae 100644
--- a/libraries/sanitizing.lib.php
+++ b/libraries/sanitizing.lib.php
@@ -97,16 +97,10 @@ function PMA_sanitize($message, $escape = false, $safe = false)
}
/* Interpret bb code */
$replace_pairs = array(
- '[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]' => '',
@@ -115,7 +109,8 @@ function PMA_sanitize($message, $escape = false, $safe = false)
'[/a]' => '',
'[sup]' => '',
'[/sup]' => '',
- '[conferr]' => '' // used in common.inc.php
+ // used in common.inc.php:
+ '[conferr]' => '',
);
/* Adjust links for setup, which lives in subfolder */
if (defined('PMA_SETUP')) {
diff --git a/server_privileges.php b/server_privileges.php
index 106685d1e3..05e0dfeb7a 100644
--- a/server_privileges.php
+++ b/server_privileges.php
@@ -213,7 +213,7 @@ if (isset($_REQUEST['adduser_submit']) || isset($_REQUEST['change_copy'])) {
. " AND `Host` = '" . $common_functions->sqlAddSlashes($hostname) . "';";
if (PMA_DBI_fetch_value($sql) == 1) {
$message = PMA_Message::error(__('The user %s already exists!'));
- $message->addParam('[i]\'' . $username . '\'@\'' . $hostname . '\'[/i]');
+ $message->addParam('[em]\'' . $username . '\'@\'' . $hostname . '\'[/em]');
$_REQUEST['adduser'] = true;
$_add_user_error = true;
} else {
diff --git a/test/classes/PMA_Message_test.php b/test/classes/PMA_Message_test.php
index c51f19ee5c..0537d14eb3 100644
--- a/test/classes/PMA_Message_test.php
+++ b/test/classes/PMA_Message_test.php
@@ -285,15 +285,15 @@ class PMA_Message_test extends PHPUnit_Framework_TestCase
{
return array(
array(
- '[i]test[/i][i]aa[i/][em]test[/em]',
- 'testaa[i/]test'
+ '[em]test[/em][em]aa[em/][em]test[/em]',
+ 'testaa[em/]test'
),
array(
- '[b]test[/b][strong]test[/strong]',
+ '[strong]test[/strong][strong]test[/strong]',
'testtest'
),
array(
- '[tt]test[/tt][code]test[/code]',
+ '[code]test[/code][code]test[/code]',
'testtest'
),
array(
diff --git a/test/libraries/PMA_sanitize_test.php b/test/libraries/PMA_sanitize_test.php
index f4546f701e..5712ba85bf 100644
--- a/test/libraries/PMA_sanitize_test.php
+++ b/test/libraries/PMA_sanitize_test.php
@@ -107,7 +107,7 @@ class PMA_sanitize_test extends PHPUnit_Framework_TestCase
{
$this->assertEquals(
'strong',
- PMA_sanitize('[b]strong[/b]')
+ PMA_sanitize('[strong]strong[/strong]')
);
}