diff --git a/login.php b/login.php index d41accd7f..4d4683ef2 100644 --- a/login.php +++ b/login.php @@ -168,7 +168,7 @@ pun_mail($email, $mail_subject, $cur_mail_message); } - message($lang_login['Forget mail'].' '.$pun_config['o_admin_email'].'.', true); + message($lang_login['Forget mail'].' '.pun_htmlspecialchars($pun_config['o_admin_email']).'.', true); } else $errors[] = $lang_login['No email match'].' '.htmlspecialchars($email).'.'; diff --git a/profile.php b/profile.php index c3e769596..67ab45d38 100644 --- a/profile.php +++ b/profile.php @@ -52,7 +52,7 @@ $cur_user = $db->fetch_assoc($result); if ($key == '' || $key != $cur_user['activate_key']) - message($lang_profile['Pass key bad'].' '.$pun_config['o_admin_email'].'.'); + message($lang_profile['Pass key bad'].' '.pun_htmlspecialchars($pun_config['o_admin_email']).'.'); else { $db->query('UPDATE '.$db->prefix.'users SET password=\''.$cur_user['activate_string'].'\', activate_string=NULL, activate_key=NULL'.(!empty($cur_user['salt']) ? ', salt=NULL' : '').' WHERE id='.$id) or error('Unable to update password', __FILE__, __LINE__, $db->error()); @@ -183,7 +183,7 @@ list($new_email, $new_email_key) = $db->fetch_row($result); if ($key == '' || $key != $new_email_key) - message($lang_profile['Email key bad'].' '.$pun_config['o_admin_email'].'.'); + message($lang_profile['Email key bad'].' '.pun_htmlspecialchars($pun_config['o_admin_email']).'.'); else { $db->query('UPDATE '.$db->prefix.'users SET email=activate_string, activate_string=NULL, activate_key=NULL WHERE id='.$id) or error('Unable to update email address', __FILE__, __LINE__, $db->error()); @@ -275,7 +275,7 @@ pun_mail($new_email, $mail_subject, $mail_message); - message($lang_profile['Activate email sent'].' '.$pun_config['o_admin_email'].'.', true); + message($lang_profile['Activate email sent'].' '.pun_htmlspecialchars($pun_config['o_admin_email']).'.', true); } $page_title = array(pun_htmlspecialchars($pun_config['o_board_title']), $lang_common['Profile'], $lang_profile['Change email']); @@ -368,7 +368,7 @@ // Move the file to the avatar directory. We do this before checking the width/height to circumvent open_basedir restrictions if (!@move_uploaded_file($uploaded_file['tmp_name'], PUN_ROOT.$pun_config['o_avatars_dir'].'/'.$id.'.tmp')) - message($lang_profile['Move failed'].' '.$pun_config['o_admin_email'].'.'); + message($lang_profile['Move failed'].' '.pun_htmlspecialchars($pun_config['o_admin_email']).'.'); list($width, $height, $type,) = @getimagesize(PUN_ROOT.$pun_config['o_avatars_dir'].'/'.$id.'.tmp'); @@ -1068,7 +1068,7 @@ } if ($user['email_setting'] == '0' && !$pun_user['is_guest'] && $pun_user['g_send_email'] == '1') - $email_field = ''.$user['email'].''; + $email_field = ''.pun_htmlspecialchars($user['email']).''; else if ($user['email_setting'] == '1' && !$pun_user['is_guest'] && $pun_user['g_send_email'] == '1') $email_field = ''.$lang_common['Send email'].''; else @@ -1239,14 +1239,14 @@ else $username_field = '

'.sprintf($lang_profile['Username info'], pun_htmlspecialchars($user['username'])).'

'."\n"; - $email_field = '

'.$lang_common['Send email'].'

'."\n"; + $email_field = '

'.$lang_common['Send email'].'

'."\n"; } else { $username_field = '

'.$lang_common['Username'].': '.pun_htmlspecialchars($user['username']).'

'."\n"; if ($pun_config['o_regs_verify'] == '1') - $email_field = '

'.sprintf($lang_profile['Email info'], $user['email'].' - '.$lang_profile['Change email'].'').'

'."\n"; + $email_field = '

'.sprintf($lang_profile['Email info'], pun_htmlspecialchars($user['email']).' - '.$lang_profile['Change email'].'').'

'."\n"; else $email_field = ''."\n"; } diff --git a/register.php b/register.php index 9d28f1ba0..f27e4cfb8 100644 --- a/register.php +++ b/register.php @@ -240,7 +240,7 @@ pun_mail($email1, $mail_subject, $mail_message); - message($lang_register['Reg email'].' '.$pun_config['o_admin_email'].'.', true); + message($lang_register['Reg email'].' '.pun_htmlspecialchars($pun_config['o_admin_email']).'.', true); } // Regenerate the users info cache diff --git a/style/Air.css b/style/Air.css index cd0a33b50..504698c31 100644 --- a/style/Air.css +++ b/style/Air.css @@ -964,8 +964,7 @@ MAIN POSTS } .pun .codebox pre { - overflow-y:hidden; - overflow: auto; + overflow: hidden; width: 100%; direction: ltr; text-align: left; diff --git a/style/Earth.css b/style/Earth.css index 834b80a07..e80a52dec 100644 --- a/style/Earth.css +++ b/style/Earth.css @@ -963,8 +963,7 @@ MAIN POSTS } .pun .codebox pre { - overflow-y:hidden; - overflow: auto; + overflow: hidden; width: 100%; direction: ltr; text-align: left; diff --git a/style/Fire.css b/style/Fire.css index 3ba260a1c..1a1a0e1b0 100644 --- a/style/Fire.css +++ b/style/Fire.css @@ -963,8 +963,7 @@ MAIN POSTS } .pun .codebox pre { - overflow-y:hidden; - overflow: auto; + overflow: hidden; width: 100%; direction: ltr; text-align: left; diff --git a/viewtopic.php b/viewtopic.php index 8342882db..ba3b00946 100644 --- a/viewtopic.php +++ b/viewtopic.php @@ -262,7 +262,7 @@ // Now let's deal with the contact links (Email and URL) if ((($cur_post['email_setting'] == '0' && !$pun_user['is_guest']) || $pun_user['is_admmod']) && $pun_user['g_send_email'] == '1') - $user_contacts[] = ''.$lang_common['Email'].''; + $user_contacts[] = ''.$lang_common['Email'].''; else if ($cur_post['email_setting'] == '1' && !$pun_user['is_guest'] && $pun_user['g_send_email'] == '1') $user_contacts[] = ''.$lang_common['Email'].''; @@ -293,7 +293,7 @@ $user_info[] = '
'.$lang_topic['IP address logged'].'
'; if ($pun_config['o_show_user_info'] == '1' && $cur_post['poster_email'] != '' && !$pun_user['is_guest'] && $pun_user['g_send_email'] == '1') - $user_contacts[] = ''.$lang_common['Email'].''; + $user_contacts[] = ''.$lang_common['Email'].''; } // Generation post action array (quote, edit, delete etc.)