Skip to content

Commit

Permalink
fixes pro #144
Browse files Browse the repository at this point in the history
  • Loading branch information
avonville committed Mar 4, 2024
1 parent 398d595 commit b2bd1cc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion includes/functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,7 @@ function weforms_insert_entry( $args, $fields = [] ) {
'user_id' => get_current_user_id(),
'user_ip' => ip2long( weforms_get_client_ip() ),
'user_device' => $browser['name'] . '/' . $browser['platform'],
'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'] ) ) : '',
'created_at' => current_time( 'mysql' )
];

Expand Down

0 comments on commit b2bd1cc

Please sign in to comment.