From: <jfi...@us...> - 2002-12-28 21:43:09
|
Update of /cvsroot/mantisbt/mantisbt In directory sc8-pr-cvs1:/tmp/cvs-serv7915 Modified Files: bug_report_advanced_page.php bug_report_page.php Log Message: * bug_report_page use file_allow_bug_upload() to decide whether to output the enctype for the form, otherwise users who have file uploading disabled in php aren't able to report bugs at all (php removes all POST variables when multipart enctype is included and uploading is turned off) * bug_report_advanced_page ditto Index: bug_report_advanced_page.php =================================================================== RCS file: /cvsroot/mantisbt/mantisbt/bug_report_advanced_page.php,v retrieving revision 1.8 retrieving revision 1.9 diff -u -d -r1.8 -r1.9 --- bug_report_advanced_page.php 23 Dec 2002 01:51:55 -0000 1.8 +++ bug_report_advanced_page.php 28 Dec 2002 21:43:06 -0000 1.9 @@ -50,7 +50,7 @@ <br /> <div align="center"> -<form name="report_bug_form" method="post" <?php if ( ON == config_get( 'allow_file_upload' ) ) { echo 'enctype="multipart/form-data"'; } ?> action="bug_report.php"> +<form name="report_bug_form" method="post" <?php if ( file_allow_bug_upload() ) { echo 'enctype="multipart/form-data"'; } ?> action="bug_report.php"> <table class="width75" cellspacing="1"> <tr> <td class="form-title"> Index: bug_report_page.php =================================================================== RCS file: /cvsroot/mantisbt/mantisbt/bug_report_page.php,v retrieving revision 1.8 retrieving revision 1.9 diff -u -d -r1.8 -r1.9 --- bug_report_page.php 23 Dec 2002 01:51:55 -0000 1.8 +++ bug_report_page.php 28 Dec 2002 21:43:06 -0000 1.9 @@ -41,7 +41,7 @@ <br /> <div align="center"> -<form name="report_bug_form" method="post" <?php if ( ON == config_get( 'allow_file_upload' ) ) { echo 'enctype="multipart/form-data"'; } ?> action="bug_report.php"> +<form name="report_bug_form" method="post" <?php if ( file_allow_bug_upload() ) { echo 'enctype="multipart/form-data"'; } ?> action="bug_report.php"> <table class="width75" cellspacing="1"> <tr> <td class="form-title"> |