X-Git-Url: https://git.plutz.net/?a=blobdiff_plain;f=cards%2Findex.cgi;h=90be142e631be5632667aaa10cc0d28e24a8fabc;hb=521f8b855c2aed5e229779ba40a0e62078e61988;hp=6f44168fa0914e239a086a05bf0b9ee26b4481a7;hpb=1b5fe5ec8e6ceb580ada4e0ff4fe3955c2457ec0;p=lobster diff --git a/cards/index.cgi b/cards/index.cgi index 6f44168..90be142 100755 --- a/cards/index.cgi +++ b/cards/index.cgi @@ -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]