1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-29 01:13:08 +00:00

minor tweaks

This commit is contained in:
Andrey A. Chernov 1998-11-03 07:11:28 +00:00
parent 6ffbcd96fd
commit 9fa132f801
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=14326
2 changed files with 18 additions and 15 deletions

View File

@ -1,5 +1,5 @@
--- cgi-bin/webglimpse.orig Mon Jul 27 22:59:49 1998
+++ cgi-bin/webglimpse Mon Nov 2 15:06:45 1998
+++ cgi-bin/webglimpse Tue Nov 3 09:20:24 1998
@@ -39,6 +39,9 @@
# **** **** **** **** CONFIGURABLE VARIABLES **** **** **** ****
# We need some of these to find our libraries, so wrap them in a BEGIN block
@ -10,7 +10,7 @@
BEGIN{
$WEBGLIMPSE_HOME = "/usr/local/webglimpse";
@@ -117,14 +120,21 @@
@@ -117,16 +120,21 @@
# Added optional module to support result caching
$QS_cache = '';
@ -30,11 +30,13 @@
# might as well start the message now
-print "Content-type: text/html\n\n";
-
-print "<!-- TESTING -->\n";
+print "Content-type: text/html$charset\n\n";
print "<!-- TESTING -->\n";
}
@@ -216,10 +226,20 @@
@@ -216,10 +224,20 @@
$nhhops = 0;
$traverse_type = 0;
$urlpath = '';
@ -56,7 +58,7 @@
# Ensure that Glimpse is available on this machine
-x $GLIMPSE_LOC || &err_noglimpse($GLIMPSE_LOC) ;
@@ -667,7 +687,7 @@
@@ -667,7 +685,7 @@
sub err_noneighborhood {
local($_) = @_;
@ -65,7 +67,7 @@
# neighborhood does not exist
print <<EOM;
<hr>
@@ -683,6 +703,7 @@
@@ -683,6 +701,7 @@
##########################################################################
sub err_noquery {
@ -73,7 +75,7 @@
# The script was called without a query.
# Provide an ISINDEX type response for browsers
# without form support.
@@ -732,6 +753,7 @@
@@ -732,6 +751,7 @@
##########################################################################
sub err_noglimpse {
local($_) = @_;
@ -81,7 +83,7 @@
#
# Glimpse was not found
# Report a useful message
@@ -756,6 +778,7 @@
@@ -756,6 +776,7 @@
##########################################################################
sub err_badglimpse {
my(@glines) = @_;
@ -89,7 +91,7 @@
#
# Glimpse had an error
# Report a useful message
@@ -786,6 +809,7 @@
@@ -786,6 +807,7 @@
##########################################################################
sub err_noindex {
local ($indexdir) = @_;
@ -97,7 +99,7 @@
# Glimpse index was not found
# Give recommendations for indexing
print "<TITLE>Glimpse Index not found</TITLE>\n";
@@ -801,6 +825,7 @@
@@ -801,6 +823,7 @@
}
##########################################################################
sub err_insecurepath {
@ -105,7 +107,7 @@
# Path user requested contains ".." characters
print "<TITLE>Path not accepted</TITLE>\n";
print "</HEAD>\n";
@@ -814,6 +839,7 @@
@@ -814,6 +837,7 @@
##########################################################################
sub err_conf {
@ -113,7 +115,7 @@
# Glimpse archive Configuration File was not found
print "<TITLE>Glimpse Archive Configuration File not found</TITLE>\n";
print "</HEAD>\n";
@@ -827,6 +853,7 @@
@@ -827,6 +851,7 @@
##########################################################################
sub err_badquery {
@ -121,7 +123,7 @@
print "<TITLE>Query is too broad</TITLE>\n";
print "</HEAD>\n";
print "<BODY>\n";
@@ -840,6 +867,7 @@
@@ -840,6 +865,7 @@
##########################################################################
sub err_locked {

View File

@ -1,6 +1,6 @@
--- dist/wgfilter-index.orig Tue Jun 16 02:16:17 1998
+++ dist/wgfilter-index Mon Nov 2 22:11:17 1998
@@ -1,26 +1,59 @@
+++ dist/wgfilter-index Tue Nov 3 09:41:31 1998
@@ -1,26 +1,60 @@
Deny \.gif$
Deny \.jpeg$
Deny \.mpeg$
@ -37,6 +37,7 @@
+Deny \.lha$
+Deny \.lzh$
+Deny \.doc$
+Deny \.bin$
+Deny \.eps$
Deny \.ps$
+Deny \.js$