View Issue Details
| ID | Project | Category | View Status | Date Submitted | Last Update |
|---|---|---|---|---|---|
| 0007013 | mantisbt | installation | public | 2006-05-02 13:26 | 2006-05-07 03:51 |
| Reporter | takahidehiguchi | Assigned To | vboctor | ||
| Priority | normal | Severity | minor | Reproducibility | always |
| Status | closed | Resolution | fixed | ||
| Product Version | 1.0.1 | ||||
| Fixed in Version | 1.1.0a1 | ||||
| Summary | 0007013: newbie admins may be redirected to blank page | ||||
| Description | Users are redirected to blank page after installation if there are one blank line in the configuraion file (config_inc.php). I believe this is a kind of design flaw of user interface. It was very hard for me to find what causes the blank page since there is no information on blank page and I am not familier with PHP. | ||||
| Additional Information | I suggest an attached patch. I believe that we should avoid blank page in all error cases. we should try to show some useful messages even if redirection had failed. Please someone write a better patch because my patch have some problems: it requires PHP 4.3.0, it does not follow coding standards, and I can't test enough this patch since I'm not familier with mantis yet.. | ||||
| Tags | No tags attached. | ||||
| Attached Files | mantis.diff (685 bytes)
--- /home/takahide/debs/mantis/mantis-1.0.1/core/print_api.php 2006-02-03 12:56:33.000000000 +0900
+++ core/print_api.php 2006-05-03 02:14:35.715340115 +0900
@@ -37,7 +37,7 @@
$t_url = string_sanitize_url( $p_url );
# don't send more headers if they have already been sent (guideweb)
- if ( ! headers_sent() ) {
+ if ( ! headers_sent( $t_file, $t_linenum ) ) {
header( 'Content-Type: text/html; charset=' . lang_get( 'charset' ) );
if ( ON == $t_use_iis ) {
@@ -46,6 +46,7 @@
header( "Location: $t_url" );
}
} else {
+ print "ERROR: Redirection failed. May be problem is in line $t_linenum of $t_file .";
return false;
}
| ||||