From e905ea2a54b3ee2751a3891b7e66b0d43500c666 Mon Sep 17 00:00:00 2001 From: Miroslav Stampar Date: Tue, 22 Nov 2011 07:07:52 +0000 Subject: [PATCH] minor bug fix --- lib/core/common.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/core/common.py b/lib/core/common.py index 45633849a..c778d4475 100644 --- a/lib/core/common.py +++ b/lib/core/common.py @@ -3111,7 +3111,7 @@ def findPageForms(content, url, raise_=False, addToTargets=False): request = form.click() url = urldecode(request.get_full_url(), kb.pageEncoding) method = request.get_method() - data = request if request.has_data() else None + data = request.get_data() if request.has_data() else None data = urldecode(data, kb.pageEncoding) if data and urlencode(DEFAULT_GET_POST_DELIMITER, None) not in data else data if not data and method and method.upper() == HTTPMETHOD.POST: debugMsg = "invalid POST form with blank data detected"