aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/posting.php
diff options
context:
space:
mode:
authorPaul S. Owen <psotfx@users.sourceforge.net>2001-11-17 17:51:59 +0000
committerPaul S. Owen <psotfx@users.sourceforge.net>2001-11-17 17:51:59 +0000
commitf027b477f4a8f277f29544cd9c2555efafdac121 (patch)
tree7c9a3f3c5ae9f52960dcdd35a4bf8245a440563e /phpBB/posting.php
parent0ed464fae67285bcc734cc8ebbbbfd14cb3562aa (diff)
downloadforums-f027b477f4a8f277f29544cd9c2555efafdac121.tar
forums-f027b477f4a8f277f29544cd9c2555efafdac121.tar.gz
forums-f027b477f4a8f277f29544cd9c2555efafdac121.tar.bz2
forums-f027b477f4a8f277f29544cd9c2555efafdac121.tar.xz
forums-f027b477f4a8f277f29544cd9c2555efafdac121.zip
Hopefully addresses bug #481831 ... changed REQUEST_URI to SCRIPT_NAME which seems common
git-svn-id: file:///svn/phpbb/trunk@1351 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/posting.php')
-rw-r--r--phpBB/posting.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/phpBB/posting.php b/phpBB/posting.php
index a3459efa5a..bb47f1bc3a 100644
--- a/phpBB/posting.php
+++ b/phpBB/posting.php
@@ -1385,7 +1385,9 @@ if( ( $submit || $confirm || $mode == "delete" ) && !$error )
$emailer = new emailer($board_config['smtp_delivery']);
$email_headers = "From: " . $board_config['board_email'] . "\nReturn-Path: " . $board_config['board_email'] . "\r\n";
- $path = (dirname($HTTP_SERVER_VARS['REQUEST_URI']) == "/") ? "" : dirname($HTTP_SERVER_VARS['REQUEST_URI']);
+
+ $path = (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'];
for($i = 0; $i < count($email_set); $i++)