cvs: pearweb /include/bugs patchtracker.php

From: Date: Wed, 08 Apr 2009 08:47:03 +0000
Subject: cvs: pearweb /include/bugs patchtracker.php
Groups: php.pear.cvs php.pear.core 
Request: Send a blank email to pear-core+get-8303@lists.php.net to get a copy of this message
cweiske Wed Apr 8 08:47:03 2009 UTC Modified files: /pearweb/include/bugs patchtracker.php Log: tell people the detected file type http://cvs.php.net/viewvc.cgi/pearweb/include/bugs/patchtracker.php?r1=1.14&r2=1.15&diff_format=u Index: pearweb/include/bugs/patchtracker.php diff -u pearweb/include/bugs/patchtracker.php:1.14 pearweb/include/bugs/patchtracker.php:1.15 --- pearweb/include/bugs/patchtracker.php:1.14 Sat Feb 9 22:45:03 2008 +++ pearweb/include/bugs/patchtracker.php Wed Apr 8 08:47:03 2009 @@ -198,8 +198,10 @@ $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 be text ' . - 'file (save as e.g. "patch.txt" or "package.diff")'); + return PEAR::raiseError('Error: uploaded patch file must be text' + . ' file (save as e.g. "patch.txt" or "package.diff")' + . ' (detected "' . htmlspecialchars($mime) . '")' + ); } $tmpfile = $file->moveTo($this->patchDir($bugid, $name)); if (PEAR::isError($tmpfile)) {

« previous php.pear.core (#8303) next »