snowplow-archive / codeigniter-paypal-ipn

A CodeIgniter library for working with the PayPal IPN (Instant Payment Notification) service
111 stars 34 forks source link

Newline handling is broken #23

Open AutoAquaria opened 10 years ago

AutoAquaria commented 10 years ago

https://github.com/orderly/codeigniter-paypal-ipn/blob/master/activerecord/libraries/PayPal_IPN.php#L181

That is technically broken. It will not properly replace newlines with a carriage return and then a newline. Double quotes must be used otherwise the string literal of \n will be attempted to be matched.