From: paul Date: Sun, 22 Mar 2015 18:13:11 +0000 (+0000) Subject: relative URI syntax in form actions, link references and redirects X-Git-Url: https://git.plutz.net/?a=commitdiff_plain;h=4498e62c889c4851001583f0b47107a48df08055;p=busy relative URI syntax in form actions, link references and redirects svn path=/trunk/; revision=62 --- diff --git a/action.sh b/action.sh index 0c46d73..a0240d9 100755 --- 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 diff --git a/templates/Admin.page b/templates/Admin.page index e869e4b..d5427fd 100644 --- a/templates/Admin.page +++ b/templates/Admin.page @@ -3,7 +3,7 @@ cat <
-
+

General

Title Display diff --git a/templates/Home.page b/templates/Home.page index e12b78f..ab36ee4 100644 --- a/templates/Home.page +++ b/templates/Home.page @@ -12,7 +12,7 @@ EOF edit_intro(){ cat <