Skip to content

Commit de8f9cf

Browse files
committed
WWSympa: Deny access if wwsympa_url parameter is unavailable for a domain (neither in robot.conf and sympa.conf).
1 parent 9b9b180 commit de8f9cf

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/cgi/wwsympa.fcgi.in

+6
Original file line numberDiff line numberDiff line change
@@ -1106,7 +1106,13 @@ while ($query = CGI::Fast->new) {
11061106
# N.B. As of 6.2.15, the http_host parameter will match with the host name
11071107
# and path locally detected by server. If remotely detected host name
11081108
# and / or path should be differ, the proxy must adjust them.
1109+
# N.B. As of 6.2.34, wwsympa_url parameter may be optional.
11091110
$robot = Sympa::WWW::Tools::get_robot('http_host', 'wwsympa_url');
1111+
unless (Conf::get_robot_conf($robot, 'wwsympa_url')) {
1112+
print "Status: 404 Not Found\n";
1113+
print "\n\n";
1114+
next;
1115+
}
11101116

11111117
# Default robot.
11121118
$param->{'default_robot'} = 1

0 commit comments

Comments
 (0)