Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Projets publics
Sympa
Commits
1b64b165
Unverified
Commit
1b64b165
authored
Feb 06, 2021
by
IKEDA Soji
Committed by
GitHub
Feb 06, 2021
Browse files
Merge pull request #1105 from ikedas/issue-1104 by ikedas
Default config breaks web GUI post (#1104)
parents
5183d929
334b5ab9
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/cgi/wwsympa.fcgi.in
View file @
1b64b165
...
...
@@ -14483,19 +14483,16 @@ sub do_compose_mail {
return undef;
}
if ( Conf::get_robot_conf($robot, 'use_html_editor')
and Conf::get_robot_conf($robot, 'use_html_editor') eq 'on') {
$param->{'use_html_editor'} =
Conf::get_robot_conf($robot, 'use_html_editor');
if ( Conf::get_robot_conf($robot, 'html_editor_url')
and Conf::get_robot_conf($robot, 'html_editor_url') =~
/^([-.\w]+:\/\/|\/)/i) {
$param->{'html_editor_url'} =
Conf::get_robot_conf($robot, 'html_editor_url');
} elsif (Conf::get_robot_conf($robot, 'html_editor_url')) {
if (Conf::get_robot_conf($robot, 'use_html_editor') eq 'on'
and length(Conf::get_robot_conf($robot, 'html_editor_url') // '')) {
$param->{'use_html_editor'} = 'on';
my $html_editor_url = Conf::get_robot_conf($robot, 'html_editor_url');
if ($html_editor_url =~ /^([-.\w]+:\/\/|\/)/i) {
$param->{'html_editor_url'} = $html_editor_url;
} else {
$param->{'html_editor_url'} =
Conf::get_robot_conf($robot, 'static_content_url') . '/'
.
Conf::get_robot_conf($robot, '
html_editor_url
')
;
Conf::get_robot_conf($robot, 'static_content_url') . '/'
.
$
html_editor_url;
}
$param->{'html_editor_init'} =
Conf::get_robot_conf($robot, 'html_editor_init');
...
...
@@ -14824,7 +14821,9 @@ sub do_send_mail {
->strftime('%a, %{day} %b %Y %H:%M:%S %z');
$msg_string .= sprintf "Date: %s\n", $date;
if (Conf::get_robot_conf($robot, 'use_html_editor')) {
if (Conf::get_robot_conf($robot, 'use_html_editor') eq 'on'
and length(Conf::get_robot_conf($robot, 'html_editor_url') // ''))
{
$msg_string .= sprintf "Content-Type: text/html\n\n%s",
$in{'body'};
} else {
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a 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