From 4e762107c5d182068ada70f5fa96d42473279144 Mon Sep 17 00:00:00 2001 From: Lorenz Pullwitt <68168097+lopul@users.noreply.github.com> Date: Sat, 6 Mar 2021 23:51:18 +0100 Subject: [PATCH] Add files via upload --- memorysurfer.c | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) diff --git a/memorysurfer.c b/memorysurfer.c index e2e3d75..09a6e50 100644 --- a/memorysurfer.c +++ b/memorysurfer.c @@ -1261,9 +1261,7 @@ int parse_post(struct WebMemorySurfer *wms) { e = a_n != 1; break; case F_EDIT_ACTION: - if (strncmp(wms->mult.post_lp, "Edit", 4) == 0) - wms->seq = S_EDIT; - else if (strncmp(wms->mult.post_lp, "Append", 6) == 0) + if (strncmp(wms->mult.post_lp, "Append", 6) == 0) wms->seq = S_APPEND; else if (strncmp(wms->mult.post_lp, "Delete", 6) == 0) wms->seq = S_ASK_DELETE_CARD; @@ -1430,6 +1428,8 @@ int parse_post(struct WebMemorySurfer *wms) { else wms->seq = S_START_CAT; } + else if (strncmp(wms->mult.post_lp, "Edit", 4) == 0) + wms->seq = S_EDIT; else if (strncmp(wms->mult.post_lp, "Open", 4) == 0) { if (wms->from_page == P_OPEN) wms->seq = S_GO_LOGIN; @@ -2837,7 +2837,7 @@ static int gen_html(struct WebMemorySurfer *wms) { assert(wms->file_title_str != NULL && strlen(wms->tok_str) == 40); printf("\t\t\t
\n" + printf("\t\t\t
\n" "\t\t\t\t\n" "\t\t\t\t
\n" "\t\t\n" @@ -2902,7 +2902,7 @@ static int gen_html(struct WebMemorySurfer *wms) { printf("\t\t\t\n" - "\t\t\t\n" + "\t\t\t\n" "\t\t\t\t
\n" "\t\t\n" "\t\t%s
\n"
@@ -2941,7 +2941,7 @@ static int gen_html(struct WebMemorySurfer *wms) {
e = xml_escape(&wms->html_lp, &wms->html_n, a_str, ESC_AMP | ESC_LT);
if (e == 0) {
printf("\t\t\t\n"
- "\t\t\t\n" + "\t\t\t
\n" "\t\t\t\t\n" "\t\t\t\t
\n" "\t\t\n" @@ -2984,7 +2984,7 @@ static int gen_html(struct WebMemorySurfer *wms) { sw_info_str); break; case B_ABOUT: - rv = printf("\t\t\tAuthor: Lorenz Pullwitt
\n" "\t\t\tCopyright 2016-2021
\n" "\t\t\tSend bugs and suggestions to\n" @@ -3088,7 +3088,7 @@ static int gen_html(struct WebMemorySurfer *wms) { if (e == 0) { rv = printf("\t\t\t\n" "\t\t\t
\n" - "\t\t\t\n" + "\t\t\t
\n" "\t\t\t\t\n" "\t\t\t\t\n" "\t\t\t\t\n" @@ -3184,7 +3184,8 @@ static int gen_html(struct WebMemorySurfer *wms) { } if (e == 0) { rv = printf("\t\t\t\n" - "\t\t\t
\n" + "\t\t\t
\n" + "\t\t\t\t\n" "\t\t\t\t\n" "\t\t\t\t\n" "\t\t\t\t
\n"