allow cookie, header and stream only in cgi mode.
This commit is contained in:
1 parent
8b49bf39a9
commit
edebae34b1
9 files changed
+30
-12
No files matched your search
@@ -6,7 +6,8 @@
|
||||
namespace jet {
|
||||
|
||||
__jet::__jet(coreutils::ZString &in, coreutils::MString &parentOut, Global &global, Tag *parent, Tag *local) : Tag(in, parentOut, global, parent, this) {
|
||||
if(keywordDefined("cgi") && (keywords[resolveKeyword("cgi")] == "true")) {
|
||||
if(keywordDefined("cgi") && (keywords[resolveKeyword("cgi")] == "true")) {
|
||||
global.cgi = true;
|
||||
coreutils::ZString requestMethod(getenv("REQUEST_METHOD"));
|
||||
if(requestMethod == "POST") {
|
||||
coreutils::ZString contentLength(getenv("CONTENT_LENGTH"));
|
||||
|
||||
Reference in new issue
Block a user