Welcome Guest, Not a member yet? Register   Sign In
CodeIgniter and PayPal IPN
#2

[eluser]gunter[/eluser]
yes, the input library modifies some of the new lines? line feeds? carriage returns? whats the name in english??? ... all chr(13) to chr(10) or backwards - I don´t remember now...

anyway you can use this and it works (look at the str_replace line):

Code:
if (isset($_POST))
        {
            foreach ($_POST as $field=>$value)
            {       // str_replace("\n", "\r\n", $value)
                    // put line feeds back to CR+LF as that's how PayPal sends them out
                    // otherwise multi-line data will be rejected as INVALID

                $value = str_replace("\n", "\r\n", $value);
                $this->ipn_data[$field] = $value;
                $post_string .= $field.'='.urlencode(stripslashes($value)).'&';

            }
        }

another method would be to copy the $_POST array before the input library does it´s job...
and copy it back in your controller Tongue


Messages In This Thread
CodeIgniter and PayPal IPN - by El Forum - 10-22-2007, 06:52 AM
CodeIgniter and PayPal IPN - by El Forum - 10-22-2007, 09:48 AM
CodeIgniter and PayPal IPN - by El Forum - 10-22-2007, 10:44 AM
CodeIgniter and PayPal IPN - by El Forum - 10-22-2007, 01:45 PM
CodeIgniter and PayPal IPN - by El Forum - 10-22-2007, 09:33 PM
CodeIgniter and PayPal IPN - by El Forum - 03-26-2009, 12:15 AM
CodeIgniter and PayPal IPN - by El Forum - 08-15-2011, 05:30 AM



Theme © iAndrew 2016 - Forum software by © MyBB