MDL-65262 core_calendar: change location param type

This commit is contained in:
Simey Lameze
2019-05-02 11:29:42 +08:00
parent 09cbe51999
commit a8dcc212be
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -125,7 +125,7 @@ class event_exporter_base extends exporter {
'null' => NULL_ALLOWED
],
'location' => [
'type' => PARAM_RAW_TRIMMED,
'type' => PARAM_RAW,
'optional' => true,
'default' => null,
'null' => NULL_ALLOWED
+1 -1
View File
@@ -2849,7 +2849,7 @@ function calendar_add_icalendar_event($event, $unused = null, $subscriptionid, $
}
$eventrecord->location = empty($event->properties['LOCATION'][0]->value) ? '' :
str_replace('\\', '', $event->properties['LOCATION'][0]->value);
trim(str_replace('\\', '', $event->properties['LOCATION'][0]->value));
$eventrecord->uuid = $event->properties['UID'][0]->value;
$eventrecord->timemodified = time();