summaryrefslogtreecommitdiff
blob: 8323bfbc65c3575e7c7470e4f26044de0e39ca33 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
Index: bug_report_page.php
===================================================================
--- bug_report_page.php	(revision 5664)
+++ bug_report_page.php	(revision 5674)
@@ -112,6 +112,7 @@
 <br />
 <div align="center">
 <form name="report_bug_form" method="post" <?php if ( file_allow_bug_upload() ) { echo 'enctype="multipart/form-data"'; } ?> action="bug_report.php">
+<?php echo form_security_field( 'bug_report' ) ?>
 <table class="width75" cellspacing="1">
 
 
Index: bug_report_advanced_page.php
===================================================================
--- bug_report_advanced_page.php	(revision 5664)
+++ bug_report_advanced_page.php	(revision 5674)
@@ -131,6 +131,7 @@
 <br />
 <div align="center">
 <form name="report_bug_form" method="post" <?php if ( file_allow_bug_upload() ) { echo 'enctype="multipart/form-data"'; } ?> action="bug_report.php">
+<?php echo form_security_field( 'bug_report' ) ?>
 <table class="width75" cellspacing="1">
 
 
Index: config_defaults_inc.php
===================================================================
--- config_defaults_inc.php	(revision 5664)
+++ config_defaults_inc.php	(revision 5674)
@@ -85,7 +85,8 @@
 		}
 
 		if ( isset( $_SERVER['HTTP_X_FORWARDED_HOST'] ) ) { // Support ProxyPass
-			$t_host = $_SERVER['HTTP_X_FORWARDED_HOST'];
+			$t_hosts = split( ',', $_SERVER['HTTP_X_FORWARDED_HOST'] );
+			$t_host = $t_hosts[0];
 		} else if ( isset( $_SERVER['HTTP_HOST'] ) ) {
 			$t_host = $_SERVER['HTTP_HOST'];
 		} else if ( isset( $_SERVER['SERVER_NAME'] ) ) {
Index: core/session_api.php
===================================================================
--- core/session_api.php	(revision 5664)
+++ core/session_api.php	(revision 5674)
@@ -56,9 +56,9 @@
 
 		session_cache_limiter( 'private_no_expire' );
 		if ( isset( $_SERVER['HTTPS'] ) && ( strtolower( $_SERVER['HTTPS'] ) != 'off' ) ) {
-			session_set_cookie_params( 0, config_get( 'cookie_path' ), config_get( 'cookie_domain' ), true, true );
+			session_set_cookie_params( 0, config_get( 'cookie_path' ), config_get( 'cookie_domain' ), true );
 		} else {
-			session_set_cookie_params( 0, config_get( 'cookie_path' ), config_get( 'cookie_domain' ), false, true );
+			session_set_cookie_params( 0, config_get( 'cookie_path' ), config_get( 'cookie_domain' ), false );
 		}
 		session_start();
 		$this->id = session_id();