cellog Fri May 25 20:40:35 2007 UTC
Modified files:
/pearweb/include/bugs patchtracker.php
Log:
fix Bug #11134 patch error when CVS diff: creates empty patch
http://cvs.php.net/viewvc.cgi/pearweb/include/bugs/patchtracker.php?r1=1.5&r2=1.6&diff_format=u
Index: pearweb/include/bugs/patchtracker.php
diff -u pearweb/include/bugs/patchtracker.php:1.5
pearweb/include/bugs/patchtracker.php:1.6
--- pearweb/include/bugs/patchtracker.php:1.5 Mon Apr 30 03:23:11 2007
+++ pearweb/include/bugs/patchtracker.php Fri May 25 20:40:35 2007
@@ -173,6 +173,9 @@
list($id, $fname) = $res;
$file->setName($fname);
if ($file->getProp('type') != 'text/plain') {
+ $this->_dbh->query('DELETE FROM bugdb_patchtracker
+ WHERE bugdb_id = ? and patch = ? and revision = ?',
+ array($bugid, $name, $id));
return PEAR::raiseError('Error: uploaded patch file must have
text/plain' .
' MIME type (save as patch.txt)');
}
--
PEAR CVS Mailing List (http://pear.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
|
Try Searching:
servers, voip, java, networking, microsoft ...
|
|
|
|