From 6e7496f7d5f9d5804ff071a53da789ca5ef9d4ba Mon Sep 17 00:00:00 2001 From: =?utf8?q?Paul=20H=C3=A4nsch?= Date: Mon, 15 Apr 2024 14:22:43 +0200 Subject: [PATCH] use $upcase constant only in its function --- cards/export_csv.sh | 2 -- cards/index.cgi | 2 -- cards/list.sh | 1 + courses/index.cgi | 2 -- 4 files changed, 1 insertion(+), 6 deletions(-) diff --git a/cards/export_csv.sh b/cards/export_csv.sh index 9ba8993..b566c03 100755 --- a/cards/export_csv.sh +++ b/cards/export_csv.sh @@ -4,8 +4,6 @@ . $_EXEC/cards/l10n.sh . $_EXEC/cards/list.sh -upcase=' y;abcdefghijklmnopqrstuvwxyzäöüé;ABCDEFGHIJKLMNOPQRSTUVWXYZÄÖÜÉ;; ' - filter="$(GET f)" order="$(GET o)" diff --git a/cards/index.cgi b/cards/index.cgi index 2c9f267..5babc9f 100755 --- a/cards/index.cgi +++ b/cards/index.cgi @@ -5,8 +5,6 @@ . $_EXEC/cards/widgets.sh . $_EXEC/cards/list.sh -upcase=' y;abcdefghijklmnopqrstuvwxyzäöüé;ABCDEFGHIJKLMNOPQRSTUVWXYZÄÖÜÉ;; ' - filter="$(GET f)" order="$(GET o)" edit="$(GET e |PATH)" diff --git a/cards/list.sh b/cards/list.sh index 6e78def..519005c 100755 --- a/cards/list.sh +++ b/cards/list.sh @@ -148,6 +148,7 @@ filter_attendance(){ filter_cards(){ local filter f fex='x;p;' + local upcase=' y;abcdefghijklmnopqrstuvwxyzäöüé;ABCDEFGHIJKLMNOPQRSTUVWXYZÄÖÜÉ;; ' filter="$(printf %s "${filter}" \ | sed -E 's;[]\/\(\)\\\$\?\.\+\*\;\[\{\}];\\&;g; diff --git a/courses/index.cgi b/courses/index.cgi index f860247..57761ad 100755 --- a/courses/index.cgi +++ b/courses/index.cgi @@ -5,8 +5,6 @@ . $_EXEC/courses/widgets.sh . $_EXEC/courses/list.sh -upcase=' y;abcdefghijklmnopqrstuvwxyzäöüé;ABCDEFGHIJKLMNOPQRSTUVWXYZÄÖÜÉ;; ' - order="$(GET o |grep -m1 -xE 'DOW|TOD')" edit="$(GET e |PATH)" -- 2.39.2