summaryrefslogtreecommitdiff
path: root/src/parser/tptp/tptp.cpp
diff options
context:
space:
mode:
authorMorgan Deters <mdeters@cs.nyu.edu>2013-06-07 15:23:36 -0400
committerMorgan Deters <mdeters@cs.nyu.edu>2013-06-07 15:23:36 -0400
commit931b5641dfffcd3779239e014406aa057e21e0f7 (patch)
treecc37b63036dc8cd88af2c8cb1ac4511d0befbf17 /src/parser/tptp/tptp.cpp
parent6a329424666b4c4a6869dd7bcf9e7cfd69a219f5 (diff)
Allow disabling include-file feature
Diffstat (limited to 'src/parser/tptp/tptp.cpp')
-rw-r--r--src/parser/tptp/tptp.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/parser/tptp/tptp.cpp b/src/parser/tptp/tptp.cpp
index ab4ea14c4..93c2168b1 100644
--- a/src/parser/tptp/tptp.cpp
+++ b/src/parser/tptp/tptp.cpp
@@ -128,6 +128,11 @@ bool newInputStream(std::string fileName, pANTLR3_LEXER lexer){
void Tptp::includeFile(std::string fileName){
+ // security for online version
+ if(!canIncludeFile()) {
+ parseError("include-file feature was disabled for this run.");
+ }
+
// Get the lexer
AntlrInput * ai = static_cast<AntlrInput *>(getInput());
pANTLR3_LEXER lexer = ai->getAntlr3Lexer();
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback