Skip to content

Commit

Permalink
fixes sanitization for referrer in notifications as well
Browse files Browse the repository at this point in the history
  • Loading branch information
avonville committed Mar 4, 2024
1 parent b2bd1cc commit f1b6ecf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion includes/class-notification.php
Original file line number Diff line number Diff line change
Expand Up @@ -430,7 +430,7 @@ public function get_merge_value( $tag ) {
break;

case 'url_referer':
return isset( $_SERVER['HTTP_REFERER'] ) ? sanitize_text_field( wp_unslash( $_SERVER['HTTP_REFERER'] ) ) : '';
return isset( $_SERVER['HTTP_REFERER'] ) ? sanitize_url( wp_unslash( $_SERVER['HTTP_REFERER'] ) ) : '';
break;

case 'url_login':
Expand Down

0 comments on commit f1b6ecf

Please sign in to comment.