From 453d6146bb89b1e3b66847f29901d6ee82b9f57f Mon Sep 17 00:00:00 2001 From: Bart van Bragt Date: Wed, 27 Nov 2002 17:35:40 +0000 Subject: [PATCH] Fixed bug #666 :) Empty smiley code could be added git-svn-id: file:///svn/phpbb/branches/phpBB-2_0_0@3110 89ea8834-ac86-4346-8a33-228a782c2dd0 --- phpBB/admin/admin_smilies.php | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/phpBB/admin/admin_smilies.php b/phpBB/admin/admin_smilies.php index 6e9f9079de..4a70da9c8c 100644 --- a/phpBB/admin/admin_smilies.php +++ b/phpBB/admin/admin_smilies.php @@ -446,6 +446,12 @@ else if ( $mode != "" ) $smile_url = ( isset($HTTP_POST_VARS['smile_url']) ) ? $HTTP_POST_VARS['smile_url'] : $HTTP_GET_VARS['smile_url']; $smile_emotion = ( isset($HTTP_POST_VARS['smile_emotion']) ) ? $HTTP_POST_VARS['smile_emotion'] : $HTTP_GET_VARS['smile_emotion']; + // If no code was entered complain ... + if ($smile_code == '' || $smile_url = '') + { + message_die(MESSAGE, $lang['Fields_empty']); + } + // // Convert < and > to proper htmlentities for parsing. // @@ -545,4 +551,4 @@ else // include('./page_footer_admin.'.$phpEx); -?> \ No newline at end of file +?>