From: Paul Hänsch Date: Wed, 25 May 2022 21:29:29 +0000 (+0200) Subject: handle cancel and invalid action X-Git-Url: https://git.plutz.net/?a=commitdiff_plain;h=ce515e0087d8fcfc980f584db82cb0cf9076c3a9;p=shellwiki handle cancel and invalid action --- 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