Redirect after import

This commit is contained in:
Vincent Riquer 2014-11-26 11:37:57 +01:00
parent a7b970f39b
commit 6b0a4b570d

2
import
View File

@ -26,11 +26,11 @@ read_query_string
if [[ $REQUEST_METHOD == POST ]] if [[ $REQUEST_METHOD == POST ]]
then then
# refresh: 0,url=/cgi/$webuser/?start=${POST["start"]}&end=${POST["end"]}
cat <<-EOHead cat <<-EOHead
Content-type: text/plain Content-type: text/plain
Last-Modified: $(LC_ALL=C TZ=GMT date +'%a, %d %b %Y %X %Z') Last-Modified: $(LC_ALL=C TZ=GMT date +'%a, %d %b %Y %X %Z')
Expires: $(LC_ALL=C TZ=GMT date +'%a, %d %b %Y %X %Z') Expires: $(LC_ALL=C TZ=GMT date +'%a, %d %b %Y %X %Z')
refresh: 0,url=/cgi/$webuser/?start=${POST["start"]}&end=${POST["end"]}
EOHead EOHead
if [[ $webuser == $AUTH_USER || $webuser == dev ]] if [[ $webuser == $AUTH_USER || $webuser == dev ]]