diff options
Diffstat (limited to 'textproc/htdig/files/patch-htsearch_cc')
-rw-r--r-- | textproc/htdig/files/patch-htsearch_cc | 24 |
1 files changed, 0 insertions, 24 deletions
diff --git a/textproc/htdig/files/patch-htsearch_cc b/textproc/htdig/files/patch-htsearch_cc deleted file mode 100644 index 5a92dba57454..000000000000 --- a/textproc/htdig/files/patch-htsearch_cc +++ /dev/null @@ -1,24 +0,0 @@ ---- htsearch/htsearch.cc.Dist Thu Feb 24 18:29:11 2000 -+++ htsearch/htsearch.cc Mon Sep 24 23:57:28 2001 -@@ -77,9 +77,18 @@ - switch (c) - { - case 'c': -- configFile = optarg; -- override_config=1; -- break; -+ // The default is obviously to do this securely -+ // but if people want to shoot themselves in the foot... -+#ifndef ALLOW_INSECURE_CGI_CONFIG -+ if (!getenv("REQUEST_METHOD")) -+ { -+#endif -+ configFile = optarg; -+ override_config=1; -+#ifndef ALLOW_INSECURE_CGI_CONFIG -+ } -+#endif -+ break; - case 'v': - debug++; - break; |