diff options
author | manu@netbsd.org <manu@netbsd.org@a716ebb1-153a-0410-b759-cfb97c6a1b53> | 2009-11-13 15:02:24 +0000 |
---|---|---|
committer | manu@netbsd.org <manu@netbsd.org@a716ebb1-153a-0410-b759-cfb97c6a1b53> | 2009-11-13 15:02:24 +0000 |
commit | a4a155c031a846dc2ba46afa612b185d5e93df0b (patch) | |
tree | 53847763a22b75975bdadc0566f2eaf43cded2e3 | |
parent | 5fda4163471fd7fd793cdec72197123f435d52b5 (diff) | |
download | mod_auth_mellon-a4a155c031a846dc2ba46afa612b185d5e93df0b.tar.gz mod_auth_mellon-a4a155c031a846dc2ba46afa612b185d5e93df0b.tar.xz mod_auth_mellon-a4a155c031a846dc2ba46afa612b185d5e93df0b.zip |
Off-by one bug that caused malfunction when replaying a POST request
containing an empty filed such as
<input type="hidden" name="foo" value=""/>
It was reposted as
<input type="hidden" name="foo" value="
"/>
git-svn-id: https://modmellon.googlecode.com/svn/trunk@71 a716ebb1-153a-0410-b759-cfb97c6a1b53
-rw-r--r-- | auth_mellon_util.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/auth_mellon_util.c b/auth_mellon_util.c index 9342497..6e4a629 100644 --- a/auth_mellon_util.c +++ b/auth_mellon_util.c @@ -1196,7 +1196,7 @@ const char *am_get_mime_body(request_rec *r, const char *mime) body += strlen(lflf); /* Strip tralling \n */ - if ((body_len = strlen(body)) > 1) { + if ((body_len = strlen(body)) >= 1) { if (body[body_len - 1] == '\n') body = apr_pstrmemdup(r->pool, body, body_len - 1); } |