diff options
author | Jakob Kaivo <jkk@ung.org> | 2019-08-07 19:39:38 -0400 |
---|---|---|
committer | Jakob Kaivo <jkk@ung.org> | 2019-08-07 19:39:38 -0400 |
commit | bb5ef54033e6eb3f26007a9d8e33a643b7dd90d1 (patch) | |
tree | 7af421233c150110bbdb047214ec41007244cc07 /blog.c | |
parent | 4887e2d8b718c239d8c5cf79513e261a40a103f3 (diff) |
remove explicit action from form; will POST to the source URL
Diffstat (limited to 'blog.c')
-rw-r--r-- | blog.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -154,7 +154,7 @@ int main(void) puts("}"); puts("</script>"); - printf("<form method=\"POST\" action=\"%s\">\n", getenv("DOCUMENT_URI")); + printf("<form method=\"POST\">\n"); puts("<input type=\"text\" name=\"title\" placeholder=\"title\" size=\"80\"><br>"); puts("<textarea id=\"body\" name=\"body\" cols=\"80\" rows=\"24\" oninput=\"update();\"><p></p></textarea><br>"); puts("<input type=\"submit\" value=\"Post\">"); |