diff options
author | 2008-10-15 17:07:47 +0000 | |
---|---|---|
committer | 2008-10-15 17:07:47 +0000 | |
commit | 3be4ec830464fc467066498db22ed768daf8c794 (patch) | |
tree | 82752240018ce9784b261c2227a7eefd018faee7 /www-apps/mantisbt/files | |
parent | New ebuild for tabler. Ebuild written by me. Fixes bug #185943. (diff) | |
download | gentoo-2-3be4ec830464fc467066498db22ed768daf8c794.tar.gz gentoo-2-3be4ec830464fc467066498db22ed768daf8c794.tar.bz2 gentoo-2-3be4ec830464fc467066498db22ed768daf8c794.zip |
Fixed inability to report issues in mantis, reported in bug #241940 by Marek Królikowski.
(Portage version: 2.2_rc11/cvs/Linux 2.6.26-openvz.git-777e816 i686)
Diffstat (limited to 'www-apps/mantisbt/files')
-rw-r--r-- | www-apps/mantisbt/files/mantisbt-1.1.3-up-to-r5674.patch | 54 |
1 files changed, 54 insertions, 0 deletions
diff --git a/www-apps/mantisbt/files/mantisbt-1.1.3-up-to-r5674.patch b/www-apps/mantisbt/files/mantisbt-1.1.3-up-to-r5674.patch new file mode 100644 index 000000000000..8323bfbc65c3 --- /dev/null +++ b/www-apps/mantisbt/files/mantisbt-1.1.3-up-to-r5674.patch @@ -0,0 +1,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(); |