cvs: pearweb /include/bugs patchtracker.php

From: Date: Sun, 23 Sep 2007 23:20:05 +0000
Subject: cvs: pearweb /include/bugs patchtracker.php
Groups: php.pear.cvs php.pear.core 
Request: Send a blank email to pear-cvs+get-48666@lists.php.net to get a copy of this message
cellog Sun Sep 23 23:20:05 2007 UTC Modified files: /pearweb/include/bugs patchtracker.php Log: fix Bug #11502 Uploading patch doesn't work http://cvs.php.net/viewvc.cgi/pearweb/include/bugs/patchtracker.php?r1=1.7&r2=1.8&diff_format=u Index: pearweb/include/bugs/patchtracker.php diff -u pearweb/include/bugs/patchtracker.php:1.7 pearweb/include/bugs/patchtracker.php:1.8 --- pearweb/include/bugs/patchtracker.php:1.7 Thu Jun 7 19:20:14 2007 +++ pearweb/include/bugs/patchtracker.php Sun Sep 23 23:20:05 2007 @@ -175,7 +175,8 @@ $allowed_mime_types = array('application/x-txt', 'text/plain', 'text/x-diff', - 'text/x-patch' + 'text/x-patch', + 'text/x-c++', ); if (!in_array($file->getProp('type'), $allowed_mime_types)) { $this->_dbh->query('DELETE FROM bugdb_patchtracker @@ -208,7 +209,7 @@ } elseif ($file->isError()) { return PEAR::raiseError($file->errorMsg()); } - return PEAR::raiseError('Unable to attach patch'); + return PEAR::raiseError('Unable to attach patch (try renaming the file with .txt extension)'); } /**

« previous php.pear.cvs (#48666) next »