Skip to content

Commit f1b6ecf

Browse files
committed
fixes sanitization for referrer in notifications as well
1 parent b2bd1cc commit f1b6ecf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

includes/class-notification.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -430,7 +430,7 @@ public function get_merge_value( $tag ) {
430430
break;
431431

432432
case 'url_referer':
433-
return isset( $_SERVER['HTTP_REFERER'] ) ? sanitize_text_field( wp_unslash( $_SERVER['HTTP_REFERER'] ) ) : '';
433+
return isset( $_SERVER['HTTP_REFERER'] ) ? sanitize_url( wp_unslash( $_SERVER['HTTP_REFERER'] ) ) : '';
434434
break;
435435

436436
case 'url_login':

0 commit comments

Comments
 (0)