Unverified Commit 76d1c9c1 authored by Stefan Hornburg (Racke)'s avatar Stefan Hornburg (Racke)
Browse files

Fix missing content for listmaster admin template edits in the web interface.

parent fff73b73
......@@ -8340,6 +8340,25 @@ sub do_editfile {
 
$param->{'filepath'} = Sympa::search_fullpath($list || $robot,
$file, subdir => $subdir);
$param->{'filecontent'} = Sympa::Tools::Text::slurp($param->{'filepath'});
unless (defined $param->{'filecontent'}) {
wwslog('err', 'Failed to open file %s: %m', $param->{'filepath'});
Sympa::WWW::Report::reject_report_web(
'intern', 'cannot_open_file',
{'file' => $param->{'file_path'}}, $param->{'action'},
$list, $param->{'user'}{'email'},
$robot
);
web_db_log(
{ 'parameters' => $in{'file'},
'status' => 'error',
'error_type' => 'internal'
}
);
return undef;
}
}
}
 
......
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