I am using absolute URLs. The line breaks are in the output generated by
header('Location: '.str_replace('URL:','',$data));
on line 180 which is:
Location: http://www.mysite.com/path/remove-confirm.php?button=<form name=rconf method=post>
<input type=hidden name=list value=>
<input type=hidden name=dodel value=1>
<input type=hidden name=u value=XXXXXX>
<input type=hidden name=r value=>
<input type=hidden name=c value=>
<input class=confirm_button type=submit value="Remove Me">
</form>
Each newline for the form inputs breaks the header redirect. The header redirect will work if it outputs as:
Location: http://www.mysite.com/path/remove-confirm.php?button=<form name=rconf method=post><input type=hidden name=list value=><input type=hidden name=dodel value=1><input type=hidden name=u value=XXXXXX><input type=hidden name=r value=><input type=hidden name=c value=><input class=confirm_button type=submit value="Remove Me"></form>