Skip to content

Commit

Permalink
System Info: Fix - Escape URLs.
Browse files Browse the repository at this point in the history
  • Loading branch information
matipojo authored and nylen committed Feb 24, 2020
1 parent eaa0795 commit 3c07709
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion core/logger/log-reporter.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ public function get_title() {
'_wpnonce' => $nonce,
] );

$title .= '<a href="' . $url . '#elementor-clear-log" class="box-title-tool">' . __( 'Clear Log', 'elementor' ) . '</a>';
$title .= '<a href="' . esc_url( $url ) . '#elementor-clear-log" class="box-title-tool">' . __( 'Clear Log', 'elementor' ) . '</a>';
$title .= '<span id="elementor-clear-log"></span>';
}

Expand Down
2 changes: 1 addition & 1 deletion modules/usage/usage-reporter.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ public function get_title() {
'_wpnonce' => $nonce,
] );

$title .= '<a id="elementor-usage-recalc" href="' . $url . '#elementor-usage-recalc" class="box-title-tool">Recalc</a>';
$title .= '<a id="elementor-usage-recalc" href="' . esc_url( $url ) . '#elementor-usage-recalc" class="box-title-tool">Recalc</a>';
}

return $title;
Expand Down

0 comments on commit 3c07709

Please sign in to comment.