From 36d98ad2fbdfe740f7e7f4b352a023502f6b87d6 Mon Sep 17 00:00:00 2001 From: karnaze Date: Thu, 28 May 1998 16:00:15 +0000 Subject: [PATCH] fix bug in get submission git-svn-id: svn://10.0.0.236/trunk@2495 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/layout/html/forms/src/nsForm.cpp | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/mozilla/layout/html/forms/src/nsForm.cpp b/mozilla/layout/html/forms/src/nsForm.cpp index 0ade1262fe0..70d865e25cc 100644 --- a/mozilla/layout/html/forms/src/nsForm.cpp +++ b/mozilla/layout/html/forms/src/nsForm.cpp @@ -337,8 +337,13 @@ void nsForm::OnSubmit(nsIPresContext* aPresContext, nsIFrame* aFrame, NS_IF_RELEASE(docURL); // Now pass on absolute url to the click handler - nsPostData postData(!isURLEncoded, data.ToNewCString()); - handler->OnLinkClick(aFrame, absURLSpec, target, &postData); + if (isPost) { + nsPostData postData(!isURLEncoded, data.ToNewCString()); + handler->OnLinkClick(aFrame, absURLSpec, target, &postData); + } + else { + handler->OnLinkClick(aFrame, absURLSpec, target, nsnull); + } DebugPrint("url", absURLSpec); DebugPrint("data", data);