kisscommunity

kisscommunity.bvnf.space site sources
git clone git://bvnf.space/home/kiss/kisscommunity.git
Log | Files | Refs | Submodules | README | LICENSE

commit d495452ad6eed8837bddd73bd03ec209f9a0a464
parent 5c3239ca68706a736a902f621662ec279bcb6ad0
Author: phoebos <ben@bvnf.space>
Date:   Mon,  6 Nov 2023 14:53:44 +0000

search: misc fixes

Diffstat:
MMakefile | 2+-
Mcgi-bin/search | 3++-
Awiki/robots.txt | 2++
3 files changed, 5 insertions(+), 2 deletions(-)

diff --git a/Makefile b/Makefile @@ -13,7 +13,7 @@ htmlclean: -find wiki -type d -exec rmdir {} \; 2>/dev/null db.sqlite: - tclsh update_db.tcl + tclsh8.6 update_db.tcl build-page: build-page.c $(CC) $(CFLAGS) $(LDFLAGS) -o $@ build-page.c diff --git a/cgi-bin/search b/cgi-bin/search @@ -110,8 +110,9 @@ if {0==[catch main res]} { puts "Status: $::status\r" puts "Content-Type: text/html\r" -puts "Content-Length: [string bytelength $document]\r" +puts "Content-Length: [string length $document]\r" puts "\r" puts $document flush stdout close stdout +exit diff --git a/wiki/robots.txt b/wiki/robots.txt @@ -0,0 +1,2 @@ +User-agent: * +Disallow: /cgi-bin/