MDL-65262 core_calendar: change location param type
This commit is contained in:
+1
-1
@@ -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
@@ -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();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user