]> git.plutz.net Git - confetti/blobdiff - cards/index.cgi
introduce global stylesheet
[confetti] / cards / index.cgi
index 6f44168fa0914e239a086a05bf0b9ee26b4481a7..1f58ab0e8432a5192625a8a3581c6444b2289d69 100755 (executable)
@@ -11,16 +11,16 @@ fi
 . $_EXEC/cards/widgets.sh
 . $_EXEC/cards/list.sh
 
-unescape() { [ $# = 0 ] && sed -E 's;\\(.);\1;g' || printf %s "$*" |sed -E 's;\\(.);\1;g'; }
 upcase=' y;abcdefghijklmnopqrstuvwxyzäöüé;ABCDEFGHIJKLMNOPQRSTUVWXYZÄÖÜÉ;; '
 
 filter="$(GET f)"
 order="$(GET o)"
-edit="$(GET e)"
+edit="$(GET e |PATH)"
+
 [ "$order" ] || order=firstname
+edit="${edit##*/}"
 
 { w_filter_diag
-
   printf '
   [form class="newcard" action="/cards/new_card.sh" method="POST"
     [button type="submit" %s]
@@ -28,4 +28,4 @@ edit="$(GET e)"
 
   [ "$edit" ] && edit_card "$edit"
   list_cards
-} | yield_page cards /cards/cards.css
+} | yield_page cards #/cards/cards.css