1 |
pva 08/10/15 17:07:47 |
2 |
|
3 |
Added: mantisbt-1.1.3-up-to-r5674.patch |
4 |
Log: |
5 |
Fixed inability to report issues in mantis, reported in bug #241940 by Marek Królikowski. |
6 |
(Portage version: 2.2_rc11/cvs/Linux 2.6.26-openvz.git-777e816 i686) |
7 |
|
8 |
Revision Changes Path |
9 |
1.1 www-apps/mantisbt/files/mantisbt-1.1.3-up-to-r5674.patch |
10 |
|
11 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/www-apps/mantisbt/files/mantisbt-1.1.3-up-to-r5674.patch?rev=1.1&view=markup |
12 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/www-apps/mantisbt/files/mantisbt-1.1.3-up-to-r5674.patch?rev=1.1&content-type=text/plain |
13 |
|
14 |
Index: mantisbt-1.1.3-up-to-r5674.patch |
15 |
=================================================================== |
16 |
Index: bug_report_page.php |
17 |
=================================================================== |
18 |
--- bug_report_page.php (revision 5664) |
19 |
+++ bug_report_page.php (revision 5674) |
20 |
@@ -112,6 +112,7 @@ |
21 |
<br /> |
22 |
<div align="center"> |
23 |
<form name="report_bug_form" method="post" <?php if ( file_allow_bug_upload() ) { echo 'enctype="multipart/form-data"'; } ?> action="bug_report.php"> |
24 |
+<?php echo form_security_field( 'bug_report' ) ?> |
25 |
<table class="width75" cellspacing="1"> |
26 |
|
27 |
|
28 |
Index: bug_report_advanced_page.php |
29 |
=================================================================== |
30 |
--- bug_report_advanced_page.php (revision 5664) |
31 |
+++ bug_report_advanced_page.php (revision 5674) |
32 |
@@ -131,6 +131,7 @@ |
33 |
<br /> |
34 |
<div align="center"> |
35 |
<form name="report_bug_form" method="post" <?php if ( file_allow_bug_upload() ) { echo 'enctype="multipart/form-data"'; } ?> action="bug_report.php"> |
36 |
+<?php echo form_security_field( 'bug_report' ) ?> |
37 |
<table class="width75" cellspacing="1"> |
38 |
|
39 |
|
40 |
Index: config_defaults_inc.php |
41 |
=================================================================== |
42 |
--- config_defaults_inc.php (revision 5664) |
43 |
+++ config_defaults_inc.php (revision 5674) |
44 |
@@ -85,7 +85,8 @@ |
45 |
} |
46 |
|
47 |
if ( isset( $_SERVER['HTTP_X_FORWARDED_HOST'] ) ) { // Support ProxyPass |
48 |
- $t_host = $_SERVER['HTTP_X_FORWARDED_HOST']; |
49 |
+ $t_hosts = split( ',', $_SERVER['HTTP_X_FORWARDED_HOST'] ); |
50 |
+ $t_host = $t_hosts[0]; |
51 |
} else if ( isset( $_SERVER['HTTP_HOST'] ) ) { |
52 |
$t_host = $_SERVER['HTTP_HOST']; |
53 |
} else if ( isset( $_SERVER['SERVER_NAME'] ) ) { |
54 |
Index: core/session_api.php |
55 |
=================================================================== |
56 |
--- core/session_api.php (revision 5664) |
57 |
+++ core/session_api.php (revision 5674) |
58 |
@@ -56,9 +56,9 @@ |
59 |
|
60 |
session_cache_limiter( 'private_no_expire' ); |
61 |
if ( isset( $_SERVER['HTTPS'] ) && ( strtolower( $_SERVER['HTTPS'] ) != 'off' ) ) { |
62 |
- session_set_cookie_params( 0, config_get( 'cookie_path' ), config_get( 'cookie_domain' ), true, true ); |
63 |
+ session_set_cookie_params( 0, config_get( 'cookie_path' ), config_get( 'cookie_domain' ), true ); |
64 |
} else { |
65 |
- session_set_cookie_params( 0, config_get( 'cookie_path' ), config_get( 'cookie_domain' ), false, true ); |
66 |
+ session_set_cookie_params( 0, config_get( 'cookie_path' ), config_get( 'cookie_domain' ), false ); |
67 |
} |
68 |
session_start(); |
69 |
$this->id = session_id(); |