Skip to content

Commit

Permalink
sanitize_url
Browse files Browse the repository at this point in the history
  • Loading branch information
EvanHerman committed Apr 25, 2024
1 parent 3a0bf76 commit 3a45cb4
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 @@ -39,7 +39,7 @@ function coblocks_render_coblocks_events_block( $attributes, $content ) {
'use_timezone_with_r_rules' => false,
)
);
$ical->init_url( esc_url( $attributes['externalCalendarUrl'] ) );
$ical->init_url( sanitize_url( $attributes['externalCalendarUrl'] ) );

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

0 comments on commit 3a45cb4

Please sign in to comment.