Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Projets publics
Sympa
Commits
76d1c9c1
Unverified
Commit
76d1c9c1
authored
Mar 28, 2020
by
Stefan Hornburg (Racke)
Browse files
Fix missing content for listmaster admin template edits in the web interface.
parent
fff73b73
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/cgi/wwsympa.fcgi.in
View file @
76d1c9c1
...
...
@@ -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;
}
}
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment