]> git.plutz.net Git - confetti/blobdiff - templates/edit_course.sh
relative URI syntax in form actions and link references
[confetti] / templates / edit_course.sh
index ea5e88d0b957857b022b3366e79250bcad4295a4..8aa9d5624f3205ce634b63ffa3bc96f4a06c3b79 100755 (executable)
@@ -1,3 +1,19 @@
+# Copyright 2014 Paul Hänsch
+#
+# This file is part of Confetti.
+# 
+# Confetti is free software: you can redistribute it and/or modify
+# it under the terms of the GNU Affero General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+# 
+# Confetti is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+# GNU Affero General Public License for more details.
+# 
+# You should have received a copy of the GNU Affero General Public License
+# along with Confetti.  If not, see <http://www.gnu.org/licenses/>. 
 
 SUP_FIELDS=(SUMMARY COMMENT)
 [ -z "$values[UID]" ] && values[UID]="$(dbus-uuidgen)"
@@ -42,7 +58,7 @@ else
 fi
 
 echo '<div id="'${id}'" class="course">'
-echo '<form action="/?action=update_course" method="POST">'
+echo '<form action="?action=update_course" method="POST">'
 echo '<input type="hidden" name="course" value="'${id}'"/>'
 echo '  <div class="section basic">'
 echo '    <span class="sectitle">'$(l10n SUMMARY)'</span>'