Continued work on cgi interfaces.
This commit is contained in:
parent
3bd9ea124f
commit
e6ebb34366
2
Tag.cpp
2
Tag.cpp
@ -411,7 +411,7 @@ namespace jet {
|
|||||||
if(name.find(":") == -1) {
|
if(name.find(":") == -1) {
|
||||||
name << ":0";
|
name << ":0";
|
||||||
}
|
}
|
||||||
return processModifier(global.cgiVariables[name], modifier);
|
return processModifier(global.cgiData[name], modifier);
|
||||||
} else if(variable.ifNext("@")) {
|
} else if(variable.ifNext("@")) {
|
||||||
// TODO: should only allow session variables. Allow substitution.
|
// TODO: should only allow session variables. Allow substitution.
|
||||||
} else if(variable.ifNext("%")) {
|
} else if(variable.ifNext("%")) {
|
||||||
|
|||||||
@ -13,8 +13,8 @@ namespace jet {
|
|||||||
|
|
||||||
if(global.cgi) {
|
if(global.cgi) {
|
||||||
outFile << "*** CGI VARIABLES ***" << std::endl;
|
outFile << "*** CGI VARIABLES ***" << std::endl;
|
||||||
for (auto i = global.cgiVariables.begin(); i != global.cgiVariables.end(); i++)
|
// for (auto i = global.cgiVariables.begin(); i != global.cgiVariables.end(); i++)
|
||||||
outFile << i->first << "=[" << i->second << "]" << std::endl;
|
// outFile << i->first << "=[" << i->second << "]" << std::endl;
|
||||||
}
|
}
|
||||||
|
|
||||||
outFile << "*** GLOBAL VARIABLES ***" << std::endl;
|
outFile << "*** GLOBAL VARIABLES ***" << std::endl;
|
||||||
|
|||||||
@ -36,7 +36,7 @@ namespace jet {
|
|||||||
coreutils::ZString contentLength(getenv("CONTENT_LENGTH"));
|
coreutils::ZString contentLength(getenv("CONTENT_LENGTH"));
|
||||||
coreutils::ZString contentType(getenv("CONTENT_TYPE"));
|
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);
|
processContainer(container, NULL, true);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user