diff options
author | David M <davidmj@users.sourceforge.net> | 2007-01-11 05:44:22 +0000 |
---|---|---|
committer | David M <davidmj@users.sourceforge.net> | 2007-01-11 05:44:22 +0000 |
commit | 3a2a61baa4642eb91d2003ac47c8dc91ad9e1ef2 (patch) | |
tree | 95a8f3fedd9034172fc0397b710515ae14488f42 /phpBB/includes/acp/acp_bbcodes.php | |
parent | 7c18792a6e2c3481ec073828039c31c18d922167 (diff) | |
download | forums-3a2a61baa4642eb91d2003ac47c8dc91ad9e1ef2.tar forums-3a2a61baa4642eb91d2003ac47c8dc91ad9e1ef2.tar.gz forums-3a2a61baa4642eb91d2003ac47c8dc91ad9e1ef2.tar.bz2 forums-3a2a61baa4642eb91d2003ac47c8dc91ad9e1ef2.tar.xz forums-3a2a61baa4642eb91d2003ac47c8dc91ad9e1ef2.zip |
#6772
- some other random things
git-svn-id: file:///svn/phpbb/trunk@6880 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/includes/acp/acp_bbcodes.php')
-rw-r--r-- | phpBB/includes/acp/acp_bbcodes.php | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/phpBB/includes/acp/acp_bbcodes.php b/phpBB/includes/acp/acp_bbcodes.php index 97a2c92e1c..270fc172ca 100644 --- a/phpBB/includes/acp/acp_bbcodes.php +++ b/phpBB/includes/acp/acp_bbcodes.php @@ -148,7 +148,16 @@ class acp_bbcodes trigger_error($user->lang['BBCODE_OPEN_ENDED_TAG'] . adm_back_link($this->u_action), E_USER_WARNING); } - // @todo - bbcode_tag <= 16, bbcode_helpline <= 255, bbcode_match <= 4000 + if (strlen($data['bbcode_tag']) > 16) + { + trigger_error($user->lang['BBCODE_TAG_TOO_LONG'] . adm_back_link($this->u_action), E_USER_WARNING); + } + + if (strlen($data['bbcode_tag']) > 4000) + { + trigger_error($user->lang['BBCODE_TAG_TOO_LONG'] . adm_back_link($this->u_action), E_USER_WARNING); + } + $sql_ary = array( 'bbcode_tag' => $data['bbcode_tag'], 'bbcode_match' => $bbcode_match, |