We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 398d595 commit b2bd1ccCopy full SHA for b2bd1cc
includes/functions.php
@@ -224,7 +224,7 @@ function weforms_insert_entry( $args, $fields = [] ) {
224
'user_id' => get_current_user_id(),
225
'user_ip' => ip2long( weforms_get_client_ip() ),
226
'user_device' => $browser['name'] . '/' . $browser['platform'],
227
- 'referer' => isset( $_SERVER['HTTP_REFERER'] ) ? sanitize_text_field( wp_unslash( $_SERVER['HTTP_REFERER'] ) ) : '',
+ 'referer' => isset( $_SERVER['HTTP_REFERER'] ) ? sanitize_url( wp_unslash( $_SERVER['HTTP_REFERER'] ) ) : '',
228
'created_at' => current_time( 'mysql' )
229
];
230
0 commit comments