Skip to content

Commit

Permalink
block json-doc for cgi mode
Browse files Browse the repository at this point in the history
(ofc it has already been blocked by the previous block of all file acceesses)
  • Loading branch information
benibela committed Jun 16, 2023
1 parent ee56544 commit caa2f42
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions xidelbase.pas
Original file line number Diff line number Diff line change
Expand Up @@ -4374,6 +4374,7 @@ procedure blockFileAccessFunctions;
fn := TXQueryEngine.findNativeModule(XMLNamespaceURL_XPathFunctions);
fn.findComplexFunction('doc', 1).func:=@xqFunctionBlocked;
fn.findComplexFunction('doc-available', 1).func:=@xqFunctionBlocked;
fn.findComplexFunction('json-doc', 1).func:=@xqFunctionBlocked;
for i := 1 to 2 do begin
fn.findComplexFunction('unparsed-text', i).func:=@xqFunctionBlocked;
fn.findInterpretedFunction('unparsed-text-lines', i).sourceImplementation:='"not available in cgi mode"';
Expand Down

0 comments on commit caa2f42

Please sign in to comment.