]> git.plutz.net Git - cgilite/commitdiff
introduced redirect function
authorpaul <paul@plutz.net>
Fri, 31 Jul 2015 13:00:57 +0000 (13:00 +0000)
committerpaul <paul@plutz.net>
Fri, 31 Jul 2015 13:00:57 +0000 (13:00 +0000)
svn path=/trunk/; revision=10

cgi.sh

diff --git a/cgi.sh b/cgi.sh
index a9c59d93f0ed19e3f4bd4de107f12918eaea9c00..d9ee5bd012ed8b3780a4ed78ae75c8f82dda0d0a 100755 (executable)
--- a/cgi.sh
+++ b/cgi.sh
@@ -86,3 +86,8 @@ urlsave(){
          s;'\'';%27;g;
          s;\?;%3f;g;'
 }
+
+redirect(){
+  printf '%s\n\n' "Location: $*"
+  exit 0
+}