]> git.plutz.net Git - confetti/blobdiff - templates/edit_attendee.sh
prevent faulty calendar wrapping
[confetti] / templates / edit_attendee.sh
index e00db8d9ba54afea2342cf98474d359211e491db..e5050128db36e54f40301eb46e1a16d4e409c15d 100755 (executable)
@@ -1,3 +1,20 @@
+# 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/>. 
+
 check_gen() {
   [ "$values[GENDER]" = "$1" ] && echo 'selected="selected"'
 }
@@ -13,10 +30,10 @@ n_post="$(echo "$values[N]" |sed -rn 's:^([^;]*;){4} *([^;]*)*$:\2:p')"
 
 SUP_FIELDS=(N NICKNAME GENDER BDAY X-ZACK-JOINDATE X-ZACK-LEAVEDATE EMAIL TEL IMPP ADR URL NOTE)
 
-[ -z "$values[UID]" ] && values[UID]="$(dbus-uuidgen)"
+[ -z "$values[UID]" ] && values[UID]="$(uuidgenerator)"
 
 echo '<div id="'${id}'" class="card">'
-echo '<form action="/?action=update_attendee" method="POST">'
+echo '<form action="?action=update_attendee" method="POST">'
 echo '<input type="hidden" name="card" value="'${id}'"/>'
 echo '  <div class="section basic">'
 echo '    <span class="sectitle">'$(l10n N)'</span>'