Commit 8a33252e authored by lpsolit%gmail.com's avatar lpsolit%gmail.com

Bug 367077: Big attachments which should be stored locally are not - Patch by…

Bug 367077: Big attachments which should be stored locally are not - Patch by Fré©ric Buclin <LpSolit@gmail.com> r=wurblzap a=LpSolit
parent 1942f818
......@@ -749,7 +749,10 @@ sub insert_attachment_for_bug {
unless ($cgi->param('ispatch')) {
$class->validate_content_type($throw_error) || return 0;
}
$data = _validate_data($throw_error, $hr_vars) || return 0;
$data = _validate_data($throw_error, $hr_vars);
# If the attachment is stored locally, $data eq ''.
# If an error is thrown, $data eq '0'.
($data ne '0') || return 0;
$contenttype = $cgi->param('contenttype');
# These are inserted using placeholders so no need to panic
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment