Skip to content

Commit

Permalink
Drop deprecated [i] from bbcode support
Browse files Browse the repository at this point in the history
  • Loading branch information
nijel committed Sep 5, 2012
1 parent 6303781 commit a567a78
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 5 deletions.
2 changes: 0 additions & 2 deletions libraries/sanitizing.lib.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion server_privileges.php
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,7 @@
. " 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 {
Expand Down
4 changes: 2 additions & 2 deletions test/classes/PMA_Message_test.php
Original file line number Diff line number Diff line change
Expand Up @@ -285,8 +285,8 @@ public function decodeBBDataProvider()
{
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]',
Expand Down

0 comments on commit a567a78

Please sign in to comment.