Skip to content

Commit b2bd1cc

Browse files
committed
fixes pro #144
1 parent 398d595 commit b2bd1cc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

includes/functions.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -224,7 +224,7 @@ function weforms_insert_entry( $args, $fields = [] ) {
224224
'user_id' => get_current_user_id(),
225225
'user_ip' => ip2long( weforms_get_client_ip() ),
226226
'user_device' => $browser['name'] . '/' . $browser['platform'],
227-
'referer' => isset( $_SERVER['HTTP_REFERER'] ) ? sanitize_text_field( wp_unslash( $_SERVER['HTTP_REFERER'] ) ) : '',
227+
'referer' => isset( $_SERVER['HTTP_REFERER'] ) ? sanitize_url( wp_unslash( $_SERVER['HTTP_REFERER'] ) ) : '',
228228
'created_at' => current_time( 'mysql' )
229229
];
230230

0 commit comments

Comments
 (0)