Skip to content

Commit

Permalink
Added g_use_iis global to workaround an IIS bug with header/Location …
Browse files Browse the repository at this point in the history
…calls

git-svn-id: http://mantisbt.svn.sourceforge.net/svnroot/mantisbt/trunk@486 f5dc347c-c33d-0410-90a0-b07cc1902cb9
  • Loading branch information
Kenzaburo Ito committed Oct 27, 2001
1 parent 63947c8 commit 609b0e0
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 2 deletions.
2 changes: 1 addition & 1 deletion ChangeLog
Expand Up @@ -7,7 +7,7 @@ Mantis
* Modified file upload size to 60 to help out Netscape
* Modified view_all_bug_page refresh to include offset
* Fixed the post-report forms to redirect properly even if a proxy clears the HTTP_REFERER

* Added g_use_iis global to workaround an IIS bug with header/Location calls

10.28.2001 - 0.15.10

Expand Down
8 changes: 8 additions & 0 deletions config_inc.php
Expand Up @@ -47,6 +47,14 @@
# requires trailing /
$g_absolute_path = "/usr/local/www/data/mantis/";

#############################
### Web Server ###
#############################

# --- using MS IIS ----------------
# set to 1 if you use IIS
$g_use_iis = 0;

#############################
### Mantis Version String ###
#############################
Expand Down
8 changes: 7 additions & 1 deletion core_print_API.php
Expand Up @@ -12,12 +12,18 @@

### --------------------
function print_header_redirect( $p_url ) {
global $g_use_iis;

header( "Status: 302" );
header( "Content-Type: text/html" );
header( "Pragma: no-cache" );
header( "Expires: Fri, 01 Jan 1999 00:00:00 GMT" );
header( "Cache-control: no-cache, no-cache=\"Set-Cookie\", private" );
header( "Location: $p_url" );
if ( $g_use_iis == 1 ) {
header( "Refresh: 0;url=$p_url" );
} else {
header( "Location: $p_url" );
}
}
### --------------------
# prints the name of the user given the id. also makes it an email link.
Expand Down

0 comments on commit 609b0e0

Please sign in to comment.