[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    branches/KDE/4.1/kdelibs/khtml/html
From:       Germain Garand <germain () ebooksfrance ! org>
Date:       2008-09-24 4:08:59
Message-ID: 1222229339.846264.4701.nullmailer () svn ! kde ! org
[Download RAW message or body]

SVN commit 864156 by ggarand:

automatically merged revision 864147:
when submiting a form, ignore base url if 'action' attribute is empty -
adapted from a patch by Alexey Proskuryakov <ap at webkit dot org>

 M  +5 -1      html_formimpl.cpp  


--- branches/KDE/4.1/kdelibs/khtml/html/html_formimpl.cpp #864155:864156
@@ -664,7 +664,11 @@
         }
 #endif // KHTML_NO_WALLET
 
-        const DOMString url(khtml::parseURL(getAttribute(ATTR_ACTION)));
+        DOMString value = getAttribute(ATTR_ACTION);
+        DOMString url = khtml::parseURL(value);
+        // ignore base url if 'action' attribute is empty.
+        if (value.isEmpty())
+            url = formUrl.url();
         if(m_post) {
             view->part()->submitForm( "post", url.string(), form_data,
                                       m_target.string(),
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic