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 d16cdbd commit 4d4ea76
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion enrol/paypal/ipn.php
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 4d4ea76

Please sign in to comment.