X-Git-Url: https://git.plutz.net/?p=confetti;a=blobdiff_plain;f=courses%2Fnew_course.sh;h=36de913dcf290b93fd802a7e7ba99a9dc31e53d4;hp=c262b790bdbf279ea5ac44229e44e2189fedeb31;hb=HEAD;hpb=27559cd5080d304385662d469866bdf69c42a89c diff --git a/courses/new_course.sh b/courses/new_course.sh index c262b79..36de913 100755 --- a/courses/new_course.sh +++ b/courses/new_course.sh @@ -1,4 +1,4 @@ -#!/bin/zsh +#!/bin/sh # Copyright 2014, 2021 Paul Hänsch # @@ -36,7 +36,7 @@ if tempfile="$(SLOCK "$coursefile")"; then BEGIN:VEVENT UID:$uid DTSTAMP:TZID=${tzid}:${tstamp} - DTSTART: + DTSTART:TZID=${tzid}:${tstamp} DURATION: RRULE: SUMMARY: @@ -44,8 +44,8 @@ if tempfile="$(SLOCK "$coursefile")"; then END:VEVENT END:VCARD EOF - REDIRECT "/courses/?e=${course}" + REDIRECT "${_BASE}/courses/?e=${course}" else SET_COOKIE session message="EDITLOCK" - REDIRECT "/courses/" + REDIRECT "${_BASE}/courses/" fi