aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPaul S. Owen <psotfx@users.sourceforge.net>2001-10-06 00:59:02 +0000
committerPaul S. Owen <psotfx@users.sourceforge.net>2001-10-06 00:59:02 +0000
commitb431e279cedbfbb893812ff3771e60302e77bbc6 (patch)
tree3a46f7abceea01090492966b828094298cef1a69
parent0f2e3657e928d24275550b6dee8f6d1eaf3b0415 (diff)
downloadforums-b431e279cedbfbb893812ff3771e60302e77bbc6.tar
forums-b431e279cedbfbb893812ff3771e60302e77bbc6.tar.gz
forums-b431e279cedbfbb893812ff3771e60302e77bbc6.tar.bz2
forums-b431e279cedbfbb893812ff3771e60302e77bbc6.tar.xz
forums-b431e279cedbfbb893812ff3771e60302e77bbc6.zip
Couple more, thanks again Ashe for pointing potential problem
git-svn-id: file:///svn/phpbb/trunk@1133 89ea8834-ac86-4346-8a33-228a782c2dd0
-rw-r--r--phpBB/profile.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/phpBB/profile.php b/phpBB/profile.php
index 6fce93e298..783ddadb64 100644
--- a/phpBB/profile.php
+++ b/phpBB/profile.php
@@ -435,10 +435,10 @@ if( isset($HTTP_GET_VARS['mode']) || isset($HTTP_POST_VARS['mode']) )
$allowbbcode = (isset($HTTP_POST_VARS['allowbbcode'])) ? ( ($HTTP_POST_VARS['allowbbcode']) ? TRUE : 0 ) : $userdata['user_allowbbcode'];
$allowsmilies = (isset($HTTP_POST_VARS['allowsmilies'])) ? ( ($HTTP_POST_VARS['allowsmilies']) ? TRUE : 0 ) : $userdata['user_allowsmilies'];
- $user_style = ( isset($HTTP_POST_VARS['style']) ) ? $HTTP_POST_VARS['style'] : $board_config['default_style'];
+ $user_style = ( isset($HTTP_POST_VARS['style']) ) ? intval($HTTP_POST_VARS['style']) : $board_config['default_style'];
$user_lang = ($HTTP_POST_VARS['language']) ? $HTTP_POST_VARS['language'] : $board_config['default_lang'];
- $user_timezone = (isset($HTTP_POST_VARS['timezone'])) ? $HTTP_POST_VARS['timezone'] : $board_config['board_timezone'];
+ $user_timezone = (isset($HTTP_POST_VARS['timezone'])) ? intval($HTTP_POST_VARS['timezone']) : $board_config['board_timezone'];
$user_dateformat = ($HTTP_POST_VARS['dateformat']) ? trim($HTTP_POST_VARS['dateformat']) : $board_config['default_dateformat'];
$user_avatar_remoteurl = (!empty($HTTP_POST_VARS['avatarremoteurl'])) ? $HTTP_POST_VARS['avatarremoteurl'] : "";