I hope this is the right place to post this. I ran into a problem using the webtolead form on CE 6.1.2.

I have a textarea in the form. I also have a redirect_url back to my website (not Sugar). If I put more than one line in the textarea the lead is submitted _but_ I get a ton of error messages from Sugar complaining about line 184 in the WebToLeadCapture.php script. That line is:

header("Location: {$redirect_url}");

It complains about more than one line.

Earlier in the script I noticed:

$redirect_url = $redirect_url.$query_string;

so apparently the query string, with a textarea with more than one line causes the problem.

I commented out the concatenation line and everything works. I do not need to pass the query string along to my redirect page.

Any problem with this solution?

Thanks for all the hard work of the Sugar Team!