From ff2e30ac4a6ed701b95e1783a1c482cabb9d8876 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Paul=20H=C3=A4nsch?= Date: Fri, 18 Mar 2022 02:38:02 +0100 Subject: [PATCH] remove debug output --- page_edit.sh | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/page_edit.sh b/page_edit.sh index 9bb9f5f..b5beeaf 100755 --- a/page_edit.sh +++ b/page_edit.sh @@ -21,8 +21,6 @@ edit_page="${PATH_INFO%\[edit\]}" edit_file="$_DATA/pages/$edit_page/#page.md" [ "$REQUEST_METHOD" = POST ] && edit_action="$(POST action)" -debug "RM: $REQUEST_METHOD ea: $edit_action" - if [ "$edit_page" = "$PATH_INFO" ]; then unset edit_page edit_action edit_file # END EDIT SCRIPT, continue in index.cgi @@ -33,15 +31,15 @@ elif [ "$edit_action" = update ]; then if S_LOCK "$edit_file"; then POST pagetext >"$edit_file" S_RELEASE "$edit_file" - REDIRECT "${_BASE}${PATH_INFO%\[edit\]}" |debug + REDIRECT "${_BASE}${PATH_INFO%\[edit\]}" else export ERRMSG="ERR_NOLOCK" - REDIRECT "${_BASE}${PATH_INFO%\[edit\]}/[edit]" |debug + REDIRECT "${_BASE}${PATH_INFO%\[edit\]}/[edit]" fi elif [ "$edit_action" = cancel ]; then S_RELEASE "$edit_file" - REDIRECT "${_BASE}${PATH_INFO%\[edit\]}" |debug + REDIRECT "${_BASE}${PATH_INFO%\[edit\]}" elif mkdir -p -- "${edit_file%/#page.md}" && S_LOCK "$edit_file"; then # Display editor page -- 2.39.2