summaryrefslogtreecommitdiff
path: root/content/fetchers/httplib_kolibri.c
diff options
context:
space:
mode:
authorAshish Gupta <ashmew2@gmail.com>2017-10-08 16:06:26 +0200
committerAshish Gupta <ashmew2@gmail.com>2017-10-25 22:04:55 +0200
commit48182ca52b9faadefe2e04e693ebdaff0014cb85 (patch)
tree6b60dc5c85c994a654e8899be4d988cbeea65674 /content/fetchers/httplib_kolibri.c
parent62e149e1a4ba8916bc5e1b6a21459c4e618b0c54 (diff)
downloadnetsurf-48182ca52b9faadefe2e04e693ebdaff0014cb85.tar.gz
netsurf-48182ca52b9faadefe2e04e693ebdaff0014cb85.tar.bz2
Stop printing POST data on debug board (fixes passwords showing up)
Diffstat (limited to 'content/fetchers/httplib_kolibri.c')
-rw-r--r--content/fetchers/httplib_kolibri.c35
1 files changed, 17 insertions, 18 deletions
diff --git a/content/fetchers/httplib_kolibri.c b/content/fetchers/httplib_kolibri.c
index 711b5d827..f9a0d9531 100644
--- a/content/fetchers/httplib_kolibri.c
+++ b/content/fetchers/httplib_kolibri.c
@@ -113,7 +113,7 @@ void *setup_fetch(struct fetch *parent_fetch, struct nsurl *url,
struct fetch_multipart_data *printer = post_multipart;
while(printer != NULL) {
LOG("Multipart POST : (%s = %s)\n", printer->name, printer->value);
- debug_board_printf("Multipart POST : (%s = %s)\n", printer->name, printer->value);
+ /* debug_board_printf("Multipart POST : (%s = %s)\n", printer->name, printer->value); */
printer = printer->next;
}
@@ -144,7 +144,7 @@ void *setup_fetch(struct fetch *parent_fetch, struct nsurl *url,
content = realloc(content, contentlen);
char *tmp = content;
- debug_board_printf("Before Loop tmp = %u\n", tmp);
+ /* debug_board_printf("Before Loop tmp = %u\n", tmp); */
printer = post_multipart;
while(printer != NULL) {
@@ -152,22 +152,22 @@ void *setup_fetch(struct fetch *parent_fetch, struct nsurl *url,
strcpy(tmp, iboundary);
tmp+=strlen(iboundary);
- debug_board_printf("tmp = %u\n", tmp);
+ /* debug_board_printf("tmp = %u\n", tmp); */
*tmp++ = '\r';
*tmp++ = '\n';
- debug_board_printf("tmp = %u\n", tmp);
+ /* debug_board_printf("tmp = %u\n", tmp); */
strcpy(tmp, "Content-Disposition: form-data; name=\"");
tmp+= strlen("Content-Disposition: form-data; name=\"");
- debug_board_printf("tmp = %u\n", tmp);
+ /* debug_board_printf("tmp = %u\n", tmp); */
strcpy(tmp, printer->name);
tmp += strlen(printer->name);
- debug_board_printf("tmp = %u\n", tmp);
+ /* debug_board_printf("tmp = %u\n", tmp); */
*tmp++ = '"';
*tmp++ = '\r';
@@ -175,22 +175,22 @@ void *setup_fetch(struct fetch *parent_fetch, struct nsurl *url,
*tmp++ = '\r';
*tmp++ = '\n';
- debug_board_printf("tmp = %u\n", tmp);
+ /* debug_board_printf("tmp = %u\n", tmp); */
strcpy(tmp, printer->value);
tmp += strlen(printer->value);
- debug_board_printf("tmp = %u\n", tmp);
+ /* debug_board_printf("tmp = %u\n", tmp); */
*tmp++ = '\r';
*tmp++ = '\n';
- debug_board_printf("END OF LOOP tmp = %u\n", tmp);
+ /* debug_board_printf("END OF LOOP tmp = %u\n", tmp); */
printer = printer->next;
}
- debug_board_printf("AFTER LOOP tmp = %u, content=%u\n", tmp, content);
+ /* debug_board_printf("AFTER LOOP tmp = %u, content=%u\n", tmp, content); */
strcpy(tmp, iboundary);
tmp+=strlen(iboundary);
@@ -203,7 +203,7 @@ void *setup_fetch(struct fetch *parent_fetch, struct nsurl *url,
*tmp='\0';
- debug_board_printf("TERMINATING NULL tmp = %u\n", tmp);
+ /* debug_board_printf("TERMINATING NULL tmp = %u\n", tmp); */
LOG("Multipart request content length : %d", contentlen);
LOG("Multipart request content: %s", content);
@@ -212,12 +212,11 @@ void *setup_fetch(struct fetch *parent_fetch, struct nsurl *url,
if(request != NULL) {
int datasent = 0;
-
- debug_board_printf("--- Sending data : %s with length %u\n", content, contentlen);
- LOG("--- Sending data : with length %u\n", contentlen);
+ /* debug_board_printf("--- Sending data : %s with length %u\n", content, contentlen); */
+ /* LOG("--- Sending data : with length %u\n", contentlen); */
datasent = http_send_asm(request, content, contentlen - 1);
- debug_board_printf("--- Sent %d bytes of data.\n", datasent);
- LOG("--- Sent %d bytes of data.\n", datasent);
+ /* debug_board_printf("--- Sent %d bytes of data.\n", datasent); */
+ LOG("--- Sent %d bytes of multipart post data.\n", datasent);
}
}
else if(post_urlenc) {
@@ -226,9 +225,9 @@ void *setup_fetch(struct fetch *parent_fetch, struct nsurl *url,
if(request != NULL) {
int datasent = 0;
/* Send all the data here itself. Move this later to polling maybe. */
- debug_board_printf("--- Sending data : %s with length %u\n", post_urlenc, strlen(post_urlenc));
+ /* debug_board_printf("--- Sending data : %s with length %u\n", post_urlenc, strlen(post_urlenc)); */
datasent = http_send_asm(request, post_urlenc, strlen(post_urlenc));
- debug_board_printf("--- Sent %d bytes of data.\n", datasent);
+ LOG("--- Sent %d bytes of urlencoded data.\n", datasent);
}
}
else {