mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-30 21:40:43 +02:00
Various fixes and updates, fix (hopefully) for bug #485799
git-svn-id: file:///svn/phpbb/trunk@1461 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
@@ -1057,7 +1057,7 @@ if( $submit && $mode != "vote" )
|
||||
$post_username = "";
|
||||
}
|
||||
|
||||
$post_subject = trim(strip_tags(str_replace(" ", " ", $HTTP_POST_VARS['subject'])));
|
||||
$post_subject = trim(strip_tags($HTTP_POST_VARS['subject']));
|
||||
if( $mode == 'newtopic' && empty($post_subject) )
|
||||
{
|
||||
$error = TRUE;
|
||||
@@ -1068,7 +1068,7 @@ if( $submit && $mode != "vote" )
|
||||
$error_msg .= $lang['Empty_subject'];
|
||||
}
|
||||
|
||||
$post_message = trim(str_replace(" ", " ", $HTTP_POST_VARS['message']));
|
||||
$post_message = trim($HTTP_POST_VARS['message']);
|
||||
if( !empty($post_message) )
|
||||
{
|
||||
if( !$error )
|
||||
@@ -1323,7 +1323,7 @@ if( ( $submit || $confirm || $mode == "delete" ) && !$error )
|
||||
|
||||
$email_headers = "From: " . $board_config['board_email'] . "\nReturn-Path: " . $board_config['board_email'] . "\r\n";
|
||||
|
||||
$path = (dirname($HTTP_SERVER_VARS['SCRIPT_NAME']) == "/") ? "" : dirname($HTTP_SERVER_VARS['SCRIPT_NAME']);
|
||||
$path = ( isset($HTTP_SERVER_VARS['PATH_INFO']) ) ? ( dirname($HTTP_SERVER_VARS['PATH_INFO']) == "/") ? "" : dirname($HTTP_SERVER_VARS['PATH_INFO']) ) : ( (dirname($HTTP_SERVER_VARS['SCRIPT_NAME']) == "/") ? "" : dirname($HTTP_SERVER_VARS['SCRIPT_NAME']) );
|
||||
$server_name = ( isset($HTTP_SERVER_VARS['HTTP_HOST']) ) ? $HTTP_SERVER_VARS['HTTP_HOST'] : $HTTP_SERVER_VARS['SERVER_NAME'];
|
||||
$protocol = ( !empty($HTTP_SERVER_VARS['HTTPS']) ) ? ( ( $HTTP_SERVER_VARS['HTTPS'] == "on" ) ? "https://" : "http://" ) : "http://";
|
||||
|
||||
|
Reference in New Issue
Block a user