aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/posting.php
diff options
context:
space:
mode:
authorPaul S. Owen <psotfx@users.sourceforge.net>2001-11-27 17:36:04 +0000
committerPaul S. Owen <psotfx@users.sourceforge.net>2001-11-27 17:36:04 +0000
commit22dce9ec94f2b71b97ab05f9de1832f9e1b0096a (patch)
tree3f958b564575b8f0519b3dc4fb8de563e6b6abd8 /phpBB/posting.php
parent5a6f39905247887c01889a35288a2bf6d2820b34 (diff)
downloadforums-22dce9ec94f2b71b97ab05f9de1832f9e1b0096a.tar
forums-22dce9ec94f2b71b97ab05f9de1832f9e1b0096a.tar.gz
forums-22dce9ec94f2b71b97ab05f9de1832f9e1b0096a.tar.bz2
forums-22dce9ec94f2b71b97ab05f9de1832f9e1b0096a.tar.xz
forums-22dce9ec94f2b71b97ab05f9de1832f9e1b0096a.zip
Various fixes and updates, fix (hopefully) for bug #485799
git-svn-id: file:///svn/phpbb/trunk@1461 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/posting.php')
-rw-r--r--phpBB/posting.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/phpBB/posting.php b/phpBB/posting.php
index fc68d7b67b..05a17b4f08 100644
--- a/phpBB/posting.php
+++ b/phpBB/posting.php
@@ -1057,7 +1057,7 @@ if( $submit && $mode != "vote" )
$post_username = "";
}
- $post_subject = trim(strip_tags(str_replace("&nbsp;", " ", $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("&nbsp;", " ", $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://";