aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB
diff options
context:
space:
mode:
authorMarek A. R <aptx@phpbb.com>2009-07-17 13:40:26 +0000
committerMarek A. R <aptx@phpbb.com>2009-07-17 13:40:26 +0000
commite4afce607529f7834776b588ca22ebb93647948e (patch)
tree730f1f686ddb9013166263aaba70cf5f448ef02e /phpBB
parent7284985ce231cef06e9c0026b593b2ab0e113686 (diff)
downloadforums-e4afce607529f7834776b588ca22ebb93647948e.tar
forums-e4afce607529f7834776b588ca22ebb93647948e.tar.gz
forums-e4afce607529f7834776b588ca22ebb93647948e.tar.bz2
forums-e4afce607529f7834776b588ca22ebb93647948e.tar.xz
forums-e4afce607529f7834776b588ca22ebb93647948e.zip
- Add hard limit for smilies
git-svn-id: file:///svn/phpbb/branches/phpBB-3_0_0@9771 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB')
-rw-r--r--phpBB/docs/CHANGELOG.html1
-rw-r--r--phpBB/includes/constants.php3
-rw-r--r--phpBB/language/en/acp/posting.php2
3 files changed, 6 insertions, 0 deletions
diff --git a/phpBB/docs/CHANGELOG.html b/phpBB/docs/CHANGELOG.html
index 9fc30afeed..f570573ea8 100644
--- a/phpBB/docs/CHANGELOG.html
+++ b/phpBB/docs/CHANGELOG.html
@@ -159,6 +159,7 @@
<li>[Fix] Do not allow setting group as default group for pending user (Bug #45675 - Patch by nickvergessen)</li>
<li>[Fix] Fail gracefully if store folder is not writable during update. (Bugs #46615, #46945)</li>
<li>[Fix] Correct escaping/unescaping in the LDAP authentication plugin. (Bug #48175)</li>
+ <li>[Fix] Add hard limit for smilies.</li>
<li>[Change] Change the data format of the default file ACM to be more secure from tampering and have better performance.</li>
<li>[Change] Add index on log_time to the log table to prevent slowdown on boards with many log entries. (Bug #44665 - Patch by bantu)</li>
<li>[Change] Template engine now permits to a limited extent variable includes.</li>
diff --git a/phpBB/includes/constants.php b/phpBB/includes/constants.php
index 2e2c239d89..2173f2ee68 100644
--- a/phpBB/includes/constants.php
+++ b/phpBB/includes/constants.php
@@ -161,6 +161,9 @@ define('BBCODE_UID_LEN', 8);
// Number of core BBCodes
define('NUM_CORE_BBCODES', 12);
+// Smiley hard limit
+define('SMILEY_LIMIT', 1000);
+
// Magic url types
define('MAGIC_URL_EMAIL', 1);
define('MAGIC_URL_FULL', 2);
diff --git a/phpBB/language/en/acp/posting.php b/phpBB/language/en/acp/posting.php
index cfb626d186..1a2be20018 100644
--- a/phpBB/language/en/acp/posting.php
+++ b/phpBB/language/en/acp/posting.php
@@ -180,6 +180,8 @@ $lang = array_merge($lang, array(
'SMILIES_URL' => 'Smiley image file',
'SMILIES_WIDTH' => 'Smiley width',
+ 'TOO_MANY_SMILIES' => 'Limit of %d smilies reached.',
+
'WRONG_PAK_TYPE' => 'The specified package does not contain the appropriate data.',
));