From 83c1343a2dfe993fd76298725ed63fffda4efafb Mon Sep 17 00:00:00 2001 From: "Silas S. Brown" <ssb22@cam.ac.uk> Date: Wed, 24 Jul 2013 18:28:53 +0000 Subject: [PATCH] Gradint update git-svn-id: http://svn.code.sf.net/p/e-guidedog/code/ssb22/gradint@1676 29193198-4895-4776-b068-10539e920549 --- gradint-build/server/samples.cgi | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/gradint-build/server/samples.cgi b/gradint-build/server/samples.cgi index 70fb5dd..8cbde3c 100755 --- a/gradint-build/server/samples.cgi +++ b/gradint-build/server/samples.cgi @@ -1,6 +1,6 @@ #!/bin/bash -# Gradint online samples browser v1.0 (c) 2011 Silas S. Brown. License: GPL +# Gradint online samples browser v1.1 (c) 2011,2013 Silas S. Brown. License: GPL # Works as an "indexing" CGI. # To set up in Apache, make .htaccess with: @@ -28,6 +28,10 @@ if ! test "a$REQUEST_URI" == a; then cd "/home/ssb22/public_html/$(echo "$REQUEST_URI"|sed -e 's/?.*//')" fi # else assume the server put us in the right directory, like mathopd does +if echo "$SERVER_SOFTWARE"|grep Apache >/dev/null; then + echo "Status: 200 OK" # overriding the 403 +fi # (mathopd doesn't need this, and not tested with all mathopd versions) + export Filename="$(pwd|sed -e 's,.*/,,').zip" if test "$QUERY_STRING" == zip || test "a$(echo "$REQUEST_URI"|sed -e 's/.*?//')" == azip; then -- GitLab