Skip to content

Commit

Permalink
Escape the URL
Browse files Browse the repository at this point in the history
  • Loading branch information
EvanHerman committed Apr 25, 2024
1 parent 0911a08 commit f779b59
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/blocks/events/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ function coblocks_render_coblocks_events_block( $attributes, $content ) {
'use_timezone_with_r_rules' => false,
)
);
$ical->init_url( sanitize_url( $attributes['externalCalendarUrl'] ) );
$ical->init_url( esc_url( $attributes['externalCalendarUrl'] ) );

if ( 'all' === $attributes['eventsRange'] ) {
$events = $ical->events_from_range();
Expand Down

0 comments on commit f779b59

Please sign in to comment.