]> git.plutz.net Git - confetti/blobdiff - action.sh
relative URI syntax in Location forwards
[confetti] / action.sh
index 0c46d73d2027cd89ba994590bc2f0559443dd92f..a0240d932d0f718a5088d44d3b942f61dce66c3c 100755 (executable)
--- a/action.sh
+++ b/action.sh
@@ -19,6 +19,6 @@
 
 ACTION="$(echo "$_GET[\"action\"]" |egrep '^[a-zA-Z0-9_-]+$')"
 ACTION="${_EXEC}/actions/${ACTION}.sh"
-[ -x "$ACTION" ] || echo -n "Location: http://$HTTP_HOST/?page=error\n\n"
+[ -x "$ACTION" ] || echo -n "Location: ?page=error\n\n"
 
 . $ACTION