Projet

Général

Profil

Révision ca0757b9

Ajouté par Assos Assos il y a plus de 9 ans

Weekly update of contrib modules

Voir les différences:

drupal7/sites/all/modules/date_ical/includes/date_ical_plugin_row_ical_entity.inc
248 248
          // Make sure this Node Reference actually references a node.
249 249
          if ($location_field['nid']) {
250 250
            $node = node_load($location_field['nid']);
251
            $location = check_plain($node->title);
251
            $location = $node->title;
252 252
          }
253 253
        }
254 254
        elseif ($location_info['type'] == 'addressfield') {
......
276 276
              $location_data[] = $location_field[$included_field];
277 277
            }
278 278
          }
279
          $location = check_plain(implode(', ', $location_data));
279
          $location = implode(', ', $location_data);
280 280
        }
281 281
        else {
282
          $location = check_plain($location_field['value']);
282
          $location = $location_field['value'];
283 283
        }
284 284
      }
285 285
    }
......
345 345
    $event['url'] = url($uri['path'], $uri['options']);
346 346
    $event['rrule'] = $is_field && array_key_exists('rrule', $date_field) ? $date_field['rrule'] : '';
347 347
    if ($location) {
348
      $event['location'] = $location;
348
      $event['location'] = date_ical_sanitize_text($location);
349 349
    }
350 350
    
351 351
    // For this event's UID, use either the date_id generated by the Date

Formats disponibles : Unified diff