Continued work on cgi interfaces.

This commit is contained in:
Brad Arant 2025-12-09 16:40:15 -08:00
parent 3bd9ea124f
commit e6ebb34366
3 changed files with 4 additions and 4 deletions

View File

@ -411,7 +411,7 @@ namespace jet {
if(name.find(":") == -1) {
name << ":0";
}
return processModifier(global.cgiVariables[name], modifier);
return processModifier(global.cgiData[name], modifier);
} else if(variable.ifNext("@")) {
// TODO: should only allow session variables. Allow substitution.
} else if(variable.ifNext("%")) {

View File

@ -13,8 +13,8 @@ namespace jet {
if(global.cgi) {
outFile << "*** CGI VARIABLES ***" << std::endl;
for (auto i = global.cgiVariables.begin(); i != global.cgiVariables.end(); i++)
outFile << i->first << "=[" << i->second << "]" << std::endl;
// for (auto i = global.cgiVariables.begin(); i != global.cgiVariables.end(); i++)
// outFile << i->first << "=[" << i->second << "]" << std::endl;
}
outFile << "*** GLOBAL VARIABLES ***" << std::endl;

View File

@ -36,7 +36,7 @@ namespace jet {
coreutils::ZString contentLength(getenv("CONTENT_LENGTH"));
coreutils::ZString contentType(getenv("CONTENT_TYPE"));
formdata = new coreutils::CGIFormData(0, contentType, contentLength, boundary);
global.cgiData = new coreutils::CGIFormData(0, contentType, contentLength, boundary);
}
}
processContainer(container, NULL, true);