Drop deprecated [i] from bbcode support
This commit is contained in:
parent
63037816a7
commit
a567a78b7f
@ -97,8 +97,6 @@ function PMA_sanitize($message, $escape = false, $safe = false)
|
||||
}
|
||||
/* Interpret bb code */
|
||||
$replace_pairs = array(
|
||||
'[i]' => '<em>', // deprecated by em
|
||||
'[/i]' => '</em>', // deprecated by em
|
||||
'[em]' => '<em>',
|
||||
'[/em]' => '</em>',
|
||||
'[b]' => '<strong>', // deprecated by strong
|
||||
|
||||
@ -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 {
|
||||
|
||||
@ -285,8 +285,8 @@ class PMA_Message_test extends PHPUnit_Framework_TestCase
|
||||
{
|
||||
return array(
|
||||
array(
|
||||
'[i]test[/i][i]aa[i/][em]test[/em]',
|
||||
'<em>test</em><em>aa[i/]<em>test</em>'
|
||||
'[em]test[/em][em]aa[em/][em]test[/em]',
|
||||
'<em>test</em><em>aa[em/]<em>test</em>'
|
||||
),
|
||||
array(
|
||||
'[b]test[/b][strong]test[/strong]',
|
||||
|
||||
Loading…
Reference in New Issue
Block a user