allow cookie, header and stream only in cgi mode.

This commit is contained in:
Brad Arant committed 2025-01-15 14:51:15 -08:00
1 parent 8b49bf39a9
commit edebae34b1
9 files changed
+30 -12

No files matched your search

+2
View File
@@ -7,6 +7,8 @@ namespace jet {
__header::__header(coreutils::ZString &in, coreutils::MString &parentOut, Global &global, Tag *parent, Tag *local) : Tag(in, parentOut, global, parent, local) {
output = false;
if(!global.cgi)
throw coreutils::Exception("must enable cgi mode on jet tag to use header tag.");
if(!keywordDefined("name"))
throw coreutils::Exception("header tag must have name defined.");
if(!keywordDefined("expr") && keywordDefined("value") && hasContainer)