From e4afce607529f7834776b588ca22ebb93647948e Mon Sep 17 00:00:00 2001 From: "Marek A. R" Date: Fri, 17 Jul 2009 13:40:26 +0000 Subject: [PATCH] - Add hard limit for smilies git-svn-id: file:///svn/phpbb/branches/phpBB-3_0_0@9771 89ea8834-ac86-4346-8a33-228a782c2dd0 --- phpBB/docs/CHANGELOG.html | 1 + phpBB/includes/constants.php | 3 +++ phpBB/language/en/acp/posting.php | 2 ++ 3 files changed, 6 insertions(+) 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 @@
  • [Fix] Do not allow setting group as default group for pending user (Bug #45675 - Patch by nickvergessen)
  • [Fix] Fail gracefully if store folder is not writable during update. (Bugs #46615, #46945)
  • [Fix] Correct escaping/unescaping in the LDAP authentication plugin. (Bug #48175)
  • +
  • [Fix] Add hard limit for smilies.
  • [Change] Change the data format of the default file ACM to be more secure from tampering and have better performance.
  • [Change] Add index on log_time to the log table to prevent slowdown on boards with many log entries. (Bug #44665 - Patch by bantu)
  • [Change] Template engine now permits to a limited extent variable includes.
  • 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.', ));