summaryrefslogtreecommitdiff
path: root/content
diff options
context:
space:
mode:
authorOle Loots <ole@monochrom.net>2012-12-21 14:05:55 +0100
committerOle Loots <ole@monochrom.net>2012-12-21 14:05:55 +0100
commit858b8a5a0ad13be8ca57e76c34e1a1bbe993fb07 (patch)
tree587b8906ac01adbee9349940defc8e6b7a7892d0 /content
parent15f8a056d5daca0600fbb11485060ac3337ffebe (diff)
downloadnetsurf-858b8a5a0ad13be8ca57e76c34e1a1bbe993fb07.tar.gz
netsurf-858b8a5a0ad13be8ca57e76c34e1a1bbe993fb07.tar.bz2
HTML Choices editing works now, but it still requires
some authentication token to be generated to make it secure.
Diffstat (limited to 'content')
-rw-r--r--content/fetchers/about.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/content/fetchers/about.c b/content/fetchers/about.c
index f514b1c5c..a7e289e38 100644
--- a/content/fetchers/about.c
+++ b/content/fetchers/about.c
@@ -329,7 +329,7 @@ static bool fetch_about_config_handler(struct fetch_about_context *ctx)
}
if (strcmp(post_item->name, "action") == 0
- && strcmp(post_item->value, "Save") == 0) {
+ && strcmp(post_item->value, "Set") == 0) {
do_save = true;
if (valid_token == true) {
break;
@@ -342,9 +342,7 @@ static bool fetch_about_config_handler(struct fetch_about_context *ctx)
int opt = 0;
post_item = ctx->post_multipart;
while (post_item != NULL) {
- printf("%s -> %s\n", post_item->name, post_item->value);
- //opt = nsoption_get_index(post_item->name);
- //nsoption_get_type(opt);
+ bool s = nsoption_set_key(post_item->name, post_item->value);
post_item = post_item->next;
}
}
@@ -411,7 +409,7 @@ static bool fetch_about_config_handler(struct fetch_about_context *ctx)
slen += snprintf(buffer + slen, sizeof buffer - slen,
"<br/><center>"
"<input type=\"hidden\" name=\"token\" value=\"%s\" />\n"
- "<input type=\"submit\" name=\"action\" value=\"Save\" />\n"
+ "<input type=\"submit\" name=\"action\" value=\"Set\" />&nbsp;\n"
"<input type=\"submit\" name=\"action\" value=\"Abort\" />\n"
"</center><br/>\n"
"</form>\n"