|| info=''
esac
-[ -n "$info" ] || echo -n "Location: //${HTTP_HOST}/?p=Error&i=noaccess\n\n"
+[ -n "$info" ] || echo -n "Location: ?p=Error&i=noaccess\n\n"
[ -n "$info" ] || exit 0
cgi_post
# You should have received a copy of the GNU Affero General Public License
# along with Busy. If not, see <http://www.gnu.org/licenses/>.
-$ACL_WIKIEDIT || echo "Location: //${HTTP_HOST}/?p=Error&i=noaccess\n\n"
+$ACL_WIKIEDIT || echo "Location: ?p=Error&i=noaccess\n\n"
$ACL_WIKIEDIT || exit 0
page="$(echo -E "$_GET[\"p\"]" |egrep -Ex 'Wiki')"
case "$page" in
Wiki) [ -f "$_DATA/Wiki/${edit}" ] && echo "${USER}:$(($(date +%s)+600))" >"$_DATA/Wiki/${edit}.lock"
- echo -n "Location: //${HTTP_HOST}/?p=Wiki&e=$edit\n\n"
+ echo -n "Location: ?p=Wiki&e=$edit\n\n"
;;
- *) echo -n "Location: //${HTTP_HOST}/?p=Error&r=input&$page\n\n"
+ *) echo -n "Location: ?p=Error&r=input&$page\n\n"
exit 0
;;
esac
metafile="$_DATA/project.meta"
-$ACL_ADMIN || echo "Location: //${HTTP_HOST}/?p=Error&i=noaccess\n\n"
+$ACL_ADMIN || echo "Location: ?p=Error&i=noaccess\n\n"
$ACL_ADMIN || exit 0
cgi_post
# You should have received a copy of the GNU Affero General Public License
# along with Busy. If not, see <http://www.gnu.org/licenses/>.
-$ACL_CREATETASK || echo "Location: //${HTTP_HOST}/?p=Error&i=noaccess\n\n"
+$ACL_CREATETASK || echo "Location: ?p=Error&i=noaccess\n\n"
$ACL_CREATETASK || exit 0
info="$_GET[\"i\"]"
touch "$_DATA/Tasks/$info"
echo -e "author=${USER}" > "$commfile"
echo -e "${comment}" >> "$commfile"
- echo -n "Location: //${HTTP_HOST}/?p=Tasks&i=$info\n\n"
+ echo -n "Location: ?p=Tasks&i=$info\n\n"
elif [ -z "$cancel" -a -n "$description" ]; then
touch "$_DATA/Tasks/$info"
echo -e "headline=${headline}" > "$descfile"
echo -e "status=${taskstatus}" >> "$descfile"
echo -e "section=${section}" >> "$descfile"
echo -e "${description}" >> "$_DATA/Tasks/$info"
- echo -n "Location: //${HTTP_HOST}/?p=Tasks#$anchor\n\n"
+ echo -n "Location: ?p=Tasks#$anchor\n\n"
elif [ -n "$cancel" ]; then
- echo -n "Location: //${HTTP_HOST}/?p=Tasks#$anchor\n\n"
+ echo -n "Location: ?p=Tasks#$anchor\n\n"
fi
# You should have received a copy of the GNU Affero General Public License
# along with Busy. If not, see <http://www.gnu.org/licenses/>.
-$ACL_WIKIEDIT || echo "Location: ${proto}://${HTTP_HOST}/?p=Error&i=noaccess\n\n"
+$ACL_WIKIEDIT || echo "Location: ?p=Error&i=noaccess\n\n"
$ACL_WIKIEDIT || exit 0
info="$(echo "$_GET[\"i\"]" |grep -Ex '[0-9]{10}_[0-9]{3}')"
[ -z "$cancel" -a -f "$_DATA/Wiki/$info" ] && mv "$_DATA/Wiki/$info" "$_DATA/Wiki/$info.$(date +%s)"
[ -z "$cancel" ] && echo -e "${page}" >"$_DATA/Wiki/$info"
-echo -n "Location: //${HTTP_HOST}/?p=Wiki&i=$info\n\n"
+echo -n "Location: ?p=Wiki&i=$info\n\n"
# You should have received a copy of the GNU Affero General Public License
# along with Busy. If not, see <http://www.gnu.org/licenses/>.
-$ACL_WIKIEDIT || echo "Location: //${HTTP_HOST}/?p=Error&i=noaccess\n\n"
+$ACL_WIKIEDIT || echo "Location: ?p=Error&i=noaccess\n\n"
$ACL_WIKIEDIT || exit 0
info="$(egrep -o '(^|&)i=[0-9]{10}_[0-9]{3}(&|$)' <<<"${QUERY_STRING}" |tr -d '&i=')"
touch "$_DATA/Wiki/$info"
echo -e "author=${USER}" > "$commfile"
echo -e "${comment}" >> "$commfile"
- echo -n "Location: //${HTTP_HOST}/?p=Wiki&i=$info\n\n"
+ echo -n "Location: ?p=Wiki&i=$info\n\n"
elif [ -z "$cancel" -a -n "$description" ]; then
touch "$_DATA/Wiki/$info"
echo -e "title=${title}" > "$descfile"
echo -e "description=${description}" >> "$descfile"
- echo -n "Location: //${HTTP_HOST}/?p=Wiki#$anchor\n\n"
+ echo -n "Location: ?p=Wiki#$anchor\n\n"
elif [ -n "$cancel" ]; then
- echo -n "Location: //${HTTP_HOST}/?p=Wiki#$anchor\n\n"
+ echo -n "Location: ?p=Wiki#$anchor\n\n"
fi