diff options
author | Andrew Tridgell <tridge@samba.org> | 1998-03-08 14:52:45 +0000 |
---|---|---|
committer | Andrew Tridgell <tridge@samba.org> | 1998-03-08 14:52:45 +0000 |
commit | c03c56b2e29fd773b19b01d22be4ce347be9f05b (patch) | |
tree | 664f9efafc010abfb272215abf5111e62974ff5a /source3/cgi.c | |
parent | 6a37b245e3894c5a3a62bf38d4eef27be5f209e8 (diff) | |
download | samba-c03c56b2e29fd773b19b01d22be4ce347be9f05b.tar.gz samba-c03c56b2e29fd773b19b01d22be4ce347be9f05b.tar.bz2 samba-c03c56b2e29fd773b19b01d22be4ce347be9f05b.zip |
- remove redundent strstr()
- don't show printers in shares page
(This used to be commit 2b4204a7769a974a74a7658e787274f6251b1d69)
Diffstat (limited to 'source3/cgi.c')
-rw-r--r-- | source3/cgi.c | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/source3/cgi.c b/source3/cgi.c index 83158fc1a5..9ce8c4d91e 100644 --- a/source3/cgi.c +++ b/source3/cgi.c @@ -513,11 +513,6 @@ static void cgi_download(char *file) } } - if (strstr(file,"..")) { - cgi_setup_error("404 File Not Found","", - "Relative paths not allowed"); - } - if (!file_exist(file, &st)) { cgi_setup_error("404 File Not Found","", "The requested file was not found"); |