diff --git a/enrol/paypal/lib.php b/enrol/paypal/lib.php index 534c68b7863..b0783ac32b6 100644 --- a/enrol/paypal/lib.php +++ b/enrol/paypal/lib.php @@ -174,7 +174,7 @@ class enrol_paypal_plugin extends enrol_plugin { echo ''; } else { //Sanitise some fields before building the PayPal form - $coursefullname = $course->fullname; + $coursefullname = format_string($course->fullname, true, array('context'=>$context)); $courseshortname = $course->shortname; $userfullname = fullname($USER); $userfirstname = $USER->firstname;