From ce515e0087d8fcfc980f584db82cb0cf9076c3a9 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Paul=20H=C3=A4nsch?= Date: Wed, 25 May 2022 23:29:29 +0200 Subject: [PATCH] handle cancel and invalid action --- handlers/30_move_rename_delete.sh | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/handlers/30_move_rename_delete.sh b/handlers/30_move_rename_delete.sh index 12e7d45..be84ca8 100755 --- a/handlers/30_move_rename_delete.sh +++ b/handlers/30_move_rename_delete.sh @@ -151,4 +151,11 @@ elif [ "$action" = delete ]; then rmdir -- "$_DATA/pages/${oldname}/" || true REDIRECT ./ fi +elif [ "$action" = cancel ]; then + REDIRECT ./ +elif [ "$action" ]; then + printf 'Refresh: %i\r\n' 4 + export ERRORMSG="Missing parameters." + theme_error 400 + return 0 fi -- 2.39.2