diff options
author | cinap_lenrek <cinap_lenrek@centraldogma> | 2011-09-05 20:08:16 +0200 |
---|---|---|
committer | cinap_lenrek <cinap_lenrek@centraldogma> | 2011-09-05 20:08:16 +0200 |
commit | cd3b567ea0629dea0f3f816af23774bc62c75bab (patch) | |
tree | 6fa5ad1b288289adb27bc2e685488903cb7075be /sys/src/cmd/mothra/forms.c | |
parent | c1d9d6e538908292ca76d2394b15885b1ac28ac9 (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.c | 4 |
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); |