summaryrefslogtreecommitdiff
path: root/sys/src/cmd/mothra/forms.c
diff options
context:
space:
mode:
authorcinap_lenrek <cinap_lenrek@centraldogma>2011-09-05 20:08:16 +0200
committercinap_lenrek <cinap_lenrek@centraldogma>2011-09-05 20:08:16 +0200
commitcd3b567ea0629dea0f3f816af23774bc62c75bab (patch)
tree6fa5ad1b288289adb27bc2e685488903cb7075be /sys/src/cmd/mothra/forms.c
parentc1d9d6e538908292ca76d2394b15885b1ac28ac9 (diff)
mothra: fix getenv() memory leak, bring file: urls back
Diffstat (limited to 'sys/src/cmd/mothra/forms.c')
-rw-r--r--sys/src/cmd/mothra/forms.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/src/cmd/mothra/forms.c b/sys/src/cmd/mothra/forms.c
index 6e0775759..880b3c826 100644
--- a/sys/src/cmd/mothra/forms.c
+++ b/sys/src/cmd/mothra/forms.c
@@ -611,11 +611,11 @@ void h_submitinput(Panel *p, int){
break;
}
if(form->method==GET){
-fprint(2, "GET %s\n", buf);
+ if(debug)fprint(2, "GET %s\n", buf);
geturl(buf, GET, 0, 0, 0);
}
else{
-fprint(2, "POST %s: %s\n", form->action, buf);
+ if(debug)fprint(2, "POST %s: %s\n", form->action, buf);
geturl(form->action, POST, buf, 0, 0);
}
free(buf);