mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-27 04:18:55 +00:00
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
This commit is contained in:
parent
abe31cd088
commit
453d6146bb
1 changed files with 7 additions and 1 deletions
|
@ -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_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'];
|
$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.
|
// Convert < and > to proper htmlentities for parsing.
|
||||||
//
|
//
|
||||||
|
|
Loading…
Add table
Reference in a new issue