gmnifaq

Unnamed repository; edit this file 'description' to name the repository.
git clone git://code.clttr.info/gmnifaq.git
Log | Files | Refs | README | LICENSE

commit 9ae9dd44d5e06347d29f28250d32a92fb1ad7725
parent 7e2f5958e9055dfcf7ceedf8a583584bb8ca52c8
Author: René Wagner <rwagner@rw-net.de>
Date:   Sat, 28 Nov 2020 16:32:17 +0100

fix links to repo

Diffstat:
MREADME.md | 8++++----
Mindex.pl | 2+-
Mlib/gmnifaq.pm | 4++--
Mtags.pl | 2+-
4 files changed, 8 insertions(+), 8 deletions(-)

diff --git a/README.md b/README.md @@ -2,7 +2,7 @@ gmnifaq is going to be a simple, self-hostable FAQ-engine for the [gemini protocol](gemini://gemini.circumlunar.space). -Visit the [demo](gemini://gmnspc.clttr.info). +Visit the [demo](gemini://gmndemo.clttr.info/faq/). ## already implemented @@ -18,7 +18,7 @@ Visit the [demo](gemini://gmnspc.clttr.info). # installation -- setup your geminiserver with cgi enable +- setup your geminiserver with cgi enabled - `git clone` the repo to the directory - rename the files - `gmnifaq.conf.example` to `gmnifaq.conf` @@ -28,7 +28,7 @@ Visit the [demo](gemini://gmnspc.clttr.info). ## requirements - gemini server with cgi enabled (like gmnisrv or stargazer) -- Perl >= 5.28 - - URI::Encode +- Perl >= 5.28 with modules + - URI::Escape - SQLite diff --git a/index.pl b/index.pl @@ -1,7 +1,7 @@ #!/usr/bin/perl # Copyright René Wagner 2020 # licenced under BSD 3-Clause licence -# https://git.sr.ht/~rwa/gmni-perl-cgi-demo +# https://git.sr.ht/~rwa/gmnifaq use strict; use DBI; diff --git a/lib/gmnifaq.pm b/lib/gmnifaq.pm @@ -1,7 +1,7 @@ #!/usr/bin/perl # Copyright René Wagner 2020 # licenced under BSD 3-Clause licence -# https://git.sr.ht/~rwa/gmni-perl-cgi-demo +# https://git.sr.ht/~rwa/gmnifaq package gmnifaq; use strict; @@ -58,7 +58,7 @@ sub write_response { my ($returncode, $meta, @content) = @_; - if (!defined($RC{$returncode})) { die "Unknown response code!"; } + defined($RC{$returncode}) or die "Unknown response code!"; printf("%d %s\r\n", $RC{$returncode}, ($meta eq '') ? $returncode : $meta); foreach (@content) { diff --git a/tags.pl b/tags.pl @@ -1,7 +1,7 @@ #!/usr/bin/perl # Copyright René Wagner 2020 # licenced under BSD 3-Clause licence -# https://git.sr.ht/~rwa/gmni-perl-cgi-demo +# https://git.sr.ht/~rwa/gmnifaq use strict; use DBI;