]> git.plutz.net Git - shellwiki/commitdiff
remove debug output
authorPaul Hänsch <paul@plutz.net>
Fri, 18 Mar 2022 01:38:02 +0000 (02:38 +0100)
committerPaul Hänsch <paul@plutz.net>
Fri, 18 Mar 2022 01:38:02 +0000 (02:38 +0100)
page_edit.sh

index 9bb9f5f2d4c1f758bef9f982c04b685bf650c329..b5beeaf8e0fcdb022e59d2aa945e81e581627829 100755 (executable)
@@ -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