mirror of
https://github.com/webmin/webmin.git
synced 2026-06-22 12:10:28 +01:00
Fix XML-RPC CGI execution under miniserv
ⓘ Allow xmlrpc.cgi to run when invoked through Webmin's internal CGI do() path while preserving require-safe helper tests, and add regression coverage for CGI header emission. https://github.com/webmin/webmin/pull/2763#issuecomment-4726296870
This commit is contained in:
@@ -12,7 +12,7 @@ use WebminCore;
|
||||
use POSIX;
|
||||
use Socket;
|
||||
|
||||
unless (caller) {
|
||||
if (!caller || $ENV{'GATEWAY_INTERFACE'}) {
|
||||
|
||||
if (!$ENV{'GATEWAY_INTERFACE'}) {
|
||||
# Command-line mode
|
||||
@@ -157,7 +157,7 @@ if (!$command_line) {
|
||||
}
|
||||
print $xmlrv;
|
||||
|
||||
} # end of unless (caller)
|
||||
} # end of script/CGI request handler
|
||||
|
||||
# parse_xml_value(&value)
|
||||
# Given a <value> object, returns a Perl scalar, hash ref or array ref for
|
||||
@@ -327,4 +327,3 @@ $xmlerr .= "</fault>\n";
|
||||
$xmlerr .= "</methodResponse>\n";
|
||||
return $xmlerr;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user