summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJakob Kaivo <jkk@ung.org>2019-08-07 19:39:38 -0400
committerJakob Kaivo <jkk@ung.org>2019-08-07 19:39:38 -0400
commitbb5ef54033e6eb3f26007a9d8e33a643b7dd90d1 (patch)
tree7af421233c150110bbdb047214ec41007244cc07
parent4887e2d8b718c239d8c5cf79513e261a40a103f3 (diff)
remove explicit action from form; will POST to the source URL
-rw-r--r--blog.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/blog.c b/blog.c
index 8174a10..73c0ff1 100644
--- a/blog.c
+++ b/blog.c
@@ -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\">");