diff options
Diffstat (limited to 'plugins/cgi')
| -rw-r--r-- | plugins/cgi/cgi.cpp | 4 | 
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/cgi/cgi.cpp b/plugins/cgi/cgi.cpp index 23c9bc4..0ad5e2b 100644 --- a/plugins/cgi/cgi.cpp +++ b/plugins/cgi/cgi.cpp @@ -196,7 +196,7 @@ namespace {   std::string HttpStatus(std::string status, std::string message, std::function<plugin_interface_setter_type>& SetResponseHeader)   {    SetResponseHeader("status", status); -  SetResponseHeader("content_type", "text/html"); +  SetResponseHeader("content_type", "text/plain");    return status + " " + message;   } @@ -266,7 +266,7 @@ std::string cgi_plugin::generate_page(    }    try { -   if ((fs::status(path).permissions() & fs::perms::others_exec) == fs::perms::none) { +   if ((fs::status(path).permissions() & (fs::perms::owner_all | fs::perms::group_all | fs::perms::others_exec)) == fs::perms::none) {       return HttpStatus("500", "Script not executable: "s + rel_target, SetResponseHeader);     }    } catch (const std::exception& ex) {  | 
