Skip to content

Commit

Permalink
esc_url_raw()
Browse files Browse the repository at this point in the history
  • Loading branch information
EvanHerman committed Apr 26, 2024
1 parent 4a3295e commit fa452ff
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( sanitize_url( $attributes['externalCalendarUrl'] ) );
$ical->init_url( esc_url_raw( $attributes['externalCalendarUrl'] ) );

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

0 comments on commit fa452ff

Please sign in to comment.