Bug #15873 [Opn]: Can't upload patches
| From: | cweiske@php.net | Date: | Thu, 12 Feb 2009 19:17:18 +0000 |
| Subject: | Bug #15873 [Opn]: Can't upload patches | ||
| References: | 1 | Groups: | php.pear.bugs |
| Request: | Send a blank email to pear-bugs+get-3@lists.php.net to get a copy of this message | ||
Edit report at http://pear.php.net/bugs/bug.php?id=15873&edit=1
ID: 15873
Updated by: cweiske@php.net
Reported By: daniel dot oconnor at gmail dot com
Summary: Can't upload patches
Status: Open
Type: Bug
Package: pearweb
PHP Version: Irrelevant
Roadmap Versions:
New Comment:
Fileinfo fixed, one issue left: After uploading, a mail shall get sent
out.
I get the following in the error log:
PHP Warning:
Damblan_Mailer::require(Damblan/Mail/Patch_Added.tpl.php): failed to
open stream: No such file or directory in
/var/www/html/pearweb/pear.php.net/include/Damblan/Mailer.php on line 84
Previous Comments:
------------------------------------------------------------------------
[2009-02-12 19:05:47] cweiske
The following patch has been added/updated:
Patch Name: test
URL: #patch bug:15873;patch:test;revision:1234465547;
------------------------------------------------------------------------
[2009-02-12 19:05:36] cweiske
The following patch has been added/updated:
Patch Name: test
URL: #patch bug:15873;patch:test;revision:1234465536;
------------------------------------------------------------------------
[2009-02-12 19:01:45] cweiske
- fileinfo is installed
- finfo::finfo(): Failed to load magic database at
'/usr/share/misc/magic'.
------------------------------------------------------------------------
[2009-02-10 11:09:09] dufuz
We did not use fileinfo on the old one.
------------------------------------------------------------------------
[2009-02-03 13:49:34] doconnor
patchtracker.php does:
$finfo = new finfo(FILEINFO_MIME);
... so this smells like finfo isn't recognising mime types properly.
// get mime-type for a specific file
$mime = $finfo->file($file->getProp('tmp_name'));
// get rid of the charset part
$t = explode(';', $mime);
$mime = $t[0];
if (!in_array($mime, $allowed_mime_types)) {
// ARGH
}
Does euk1 have the same kind of mime extension as the old one?
------------------------------------------------------------------------
The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
http://pear.php.net/bugs/bug.php?id=15873
--
Edit this bug report at http://pear.php.net/bugs/bug.php?id=15873&edit=1