]> git.plutz.net Git - confetti/blobdiff - cards/main.cgi
new cards function
[confetti] / cards / main.cgi
index 899388d994e07d68d304890a268d7435de5d5604..6f44168fa0914e239a086a05bf0b9ee26b4481a7 100755 (executable)
@@ -11,6 +11,9 @@ fi
 . $_EXEC/cards/widgets.sh
 . $_EXEC/cards/list.sh
 
 . $_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)"
 filter="$(GET f)"
 order="$(GET o)"
 edit="$(GET e)"
@@ -19,7 +22,7 @@ edit="$(GET e)"
 { w_filter_diag
 
   printf '
 { w_filter_diag
 
   printf '
-  [form class="newcard" action="cards/new_card.sh" method="POST"
+  [form class="newcard" action="/cards/new_card.sh" method="POST"
     [button type="submit" %s]
   ]' "$(l10n newcard)"
 
     [button type="submit" %s]
   ]' "$(l10n newcard)"