Skip to content

Commit

Permalink
Catch too long help lines
Browse files Browse the repository at this point in the history
git-svn-id: file:///svn/phpbb/branches/phpBB-3_0_0@8743 89ea8834-ac86-4346-8a33-228a782c2dd0
  • Loading branch information
kellanved committed Aug 12, 2008
1 parent 00fa69c commit b850bbf
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
6 changes: 6 additions & 0 deletions phpBB/includes/acp/acp_bbcodes.php
Expand Up @@ -168,6 +168,12 @@ function main($id, $mode)
{
trigger_error($user->lang['BBCODE_TAG_DEF_TOO_LONG'] . adm_back_link($this->u_action), E_USER_WARNING);
}


if (strlen($bbcode_helpline) > 255)
{
trigger_error($user->lang['BBCODE_HELPLINE_TOO_LONG'] . adm_back_link($this->u_action), E_USER_WARNING);
}

$sql_ary = array(
'bbcode_tag' => $data['bbcode_tag'],
Expand Down
2 changes: 2 additions & 0 deletions phpBB/language/en/acp/posting.php
Expand Up @@ -47,6 +47,8 @@
'BBCODE_HELPLINE' => 'Help line',
'BBCODE_HELPLINE_EXPLAIN' => 'This field contains the mouse over text of the BBCode.',
'BBCODE_HELPLINE_TEXT' => 'Help line text',
'BBCODE_HELPLINE_TOO_LONG' => 'The help line you entered is too long.',

'BBCODE_INVALID_TAG_NAME' => 'The BBCode tag name that you selected already exists.',
'BBCODE_INVALID' => 'Your BBCode is constructed in an invalid form.',
'BBCODE_OPEN_ENDED_TAG' => 'Your custom BBCode must contain both an opening and a closing tag.',
Expand Down

0 comments on commit b850bbf

Please sign in to comment.