~ubuntu-branches/ubuntu/precise/xulrunner-1.9/precise

« back to all changes in this revision

Viewing changes to mozilla/extensions/xforms/nsXFormsSubmissionElement.cpp

  • Committer: Bazaar Package Importer
  • Author(s): Alexander Sack
  • Date: 2009-06-03 10:04:36 UTC
  • mfrom: (1.1.20 upstream)
  • Revision ID: james.westby@ubuntu.com-20090603100436-e8am3r2lyj5z5931
Tags: 1.9.0.11+build2+nobinonly-0ubuntu1
* New upstream release v1.9.0.11 build2 (FIREFOX_3_0_11_BUILD2)
  - see USN-779-1
- adjust patches to changed upstream code base
  - update debian/patches/bz372826_att337031_about_style.patch

Show diffs side-by-side

added added

removed removed

Lines of Context:
2611
2611
        // Read returns 0 if eos
2612
2612
        nsCOMPtr<nsINetUtil> netUtil = do_GetService(NS_NETUTIL_CONTRACTID);
2613
2613
        NS_ENSURE_STATE(netUtil);
 
2614
 
 
2615
        // escape the body and append it to mailtoUrl
 
2616
        nsCAutoString escapeResult;
2614
2617
        while (numReadIn != 0) {
2615
2618
          numReadIn = stream->Read(buf, len, &read);
2616
2619
          netUtil->EscapeURL(nsCString(buf, read), nsINetUtil::ESCAPE_URL_QUERY,
2617
 
                             mailtoUrl);
 
2620
                             escapeResult);
2618
2621
        }
2619
2622
 
2620
2623
        delete [] buf;
2621
2624
 
 
2625
        mailtoUrl.Append(escapeResult);
 
2626
 
2622
2627
        // create an nsIUri out of the string
2623
2628
        nsCOMPtr<nsIURI> mailUri;
2624
2629
        ios->NewURI(mailtoUrl,