Skip to content

Commit

Permalink
MDL-41531 enrol_paypal: Fix enrol errors due to non-ASCII characters
Browse files Browse the repository at this point in the history
  • Loading branch information
ewallah authored and junpataleta committed Jan 11, 2016
1 parent e65dfd9 commit f07bbcc
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion enrol/paypal/ipn.php
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@

foreach ($_POST as $key => $value) {
$req .= "&$key=".urlencode($value);
$data->$key = $value;
$data->$key = fix_utf8($value);
}

$custom = explode('-', $data->custom);
Expand Down Expand Up @@ -211,6 +211,8 @@
die;

}
// Use the queried course's full name for the item_name field.
$data->item_name = $course->fullname;

// ALL CLEAR !

Expand Down

0 comments on commit f07bbcc

Please sign in to comment.