Indefero

Indefero Commit Details


Date:2008-11-27 02:48:01 (16 years 25 days ago)
Author:Loic d'Anterroches
Branch:dev, develop, feature-issue_links, feature.better-home, feature.content-md5, feature.diff-whitespace, feature.download-md5, feature.issue-links, feature.issue-of-others, feature.issue-summary, feature.search-filter, feature.webrepos, feature.wiki-default-page, master, release-1.1, release-1.2, release-1.3
Commit:eb60e99d5cf6c611d151e78fb1b63b6f8a4f4a31
Parents: 93c44feb052aef972713c3ee1f8ae3f8500b98d8
Message:Fixed to have correct post failure cleaning of the uploaded file.

Note: Latest Pluf release needed.
Changes:

File differences

src/IDF/Form/Upload.php
110110
111111
112112
113
114
115
116
117
118
119
120
121
122
123
124
113125
114126
115127
}
/**
* If we have uploaded a file, but the form failed remove it.
*
*/
function failed()
{
if (!empty($this->cleaned_data['file'])
and file_exists(Pluf::f('upload_path').'/'.$this->project->shortname.'/files/'.$this->cleaned_data['file'])) {
@unlink(Pluf::f('upload_path').'/'.$this->project->shortname.'/files/'.$this->cleaned_data['file']);
}
}
/**
* Save the model in the database.
*
* @param bool Commit in the database or not. If not, the object

Archive Download the corresponding diff file

Page rendered in 0.07253s using 13 queries.