mirror of
https://github.com/moodle/moodle.git
synced 2025-05-13 03:36:09 +02:00
MDL-41531 enrol_paypal: Fix enrol errors due to non-ASCII characters
This commit is contained in:
parent
e65dfd9f28
commit
f07bbccb03
@ -58,7 +58,7 @@ $data = new stdClass();
|
||||
|
||||
foreach ($_POST as $key => $value) {
|
||||
$req .= "&$key=".urlencode($value);
|
||||
$data->$key = $value;
|
||||
$data->$key = fix_utf8($value);
|
||||
}
|
||||
|
||||
$custom = explode('-', $data->custom);
|
||||
@ -211,6 +211,8 @@ if (strlen($result) > 0) {
|
||||
die;
|
||||
|
||||
}
|
||||
// Use the queried course's full name for the item_name field.
|
||||
$data->item_name = $course->fullname;
|
||||
|
||||
// ALL CLEAR !
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user