com web/qa: Increasing PFTT Report size limit: pftt_report. php
| From: | Matt Ficken | Date: | Mon, 24 Mar 2014 19:14:17 +0000 |
| Subject: | com web/qa: Increasing PFTT Report size limit: pftt_report. php | ||
| Groups: | php.qa | ||
| Request: | Send a blank email to php-qa+get-67270@lists.php.net to get a copy of this message | ||
Commit: 52ca10670a06718cee3d44941934d47cd2f72ea8
Author: v-mafick@microsoft.com <v-mafick@microsoft.com> Mon, 24 Mar 2014 12:14:17
-0700
Parents: af6891a4a890156e301cec4be2da2a77f889e98a
Branches: master
Link: http://git.php.net/?p=web/qa.git;a=commitdiff;h=52ca10670a06718cee3d44941934d47cd2f72ea8
Log:
Increasing PFTT Report size limit
Changed paths:
M pftt_report.php
Diff:
diff --git a/pftt_report.php b/pftt_report.php
index 3f9a080..96ad1cf 100755
--- a/pftt_report.php
+++ b/pftt_report.php
@@ -65,7 +65,8 @@ if ((strpos($revision, ".")===FALSE and substr($revision, 0,
1)!="r") or strlen(
}
// validate report_file
-if ($_FILES['report_file']['size'] > 100000 or
$_FILES['report_file']['size'] < 100 ) {
+if ($_FILES['report_file']['size'] > 600000 or
$_FILES['report_file']['size'] < 100 ) {
+ // some PhpUnit reports can be quite large
exit_error('Invalid report file size');
} else if ($_FILES['report_file']['type']!="text/html") {
exit_error('Invalid report type');