Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion libs/Comments.php
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ public function comment_author_cookie(){

if ( isset($this->super->cookie['comment_author_' . COOKIEHASH]) ){
echo 'cookieAuthorName = "' . $this->super->cookie['comment_author_' . COOKIEHASH] . '";';
echo 'cookieAuthorEmail = "' . $this->super->cookie['comment_author_email_' . COOKIEHASH] . '";';
echo 'cookieAuthorEmail = "' . ($this->super->cookie['comment_author_email_' . COOKIEHASH] ?? '') . '";';
}
echo '</script>';
}
Expand Down
10 changes: 6 additions & 4 deletions libs/Functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -3527,10 +3527,12 @@ public function cf7_debug_info($submission, $submission_data=false){
$debug_info['nebula_current_page_url'] = sanitize_text_field($current_page_url);
$debug_info['nebula_current_page_method'] = sanitize_text_field($current_page_method);

$session_cookie_data = json_decode(stripslashes($this->super->cookie['session']), true);
if ( isset($session_cookie_data['landing_page']) ){
$debug_info['nebula_referrer'] = sanitize_text_field($session_cookie_data['referrer']); //This is the original referrer (not just the previous page)
$debug_info['nebula_landing_page'] = sanitize_text_field($session_cookie_data['landing_page']); //This is the first page view of the session
if ( isset($this->super->cookie['session']) ){
$session_cookie_data = json_decode(stripslashes($this->super->cookie['session']), true);
if ( isset($session_cookie_data['landing_page']) ){
$debug_info['nebula_referrer'] = sanitize_text_field($session_cookie_data['referrer']); //This is the original referrer (not just the previous page)
$debug_info['nebula_landing_page'] = sanitize_text_field($session_cookie_data['landing_page']); //This is the first page view of the session
}
}

if ( $this->get_option('attribution_tracking') ){ //Don't output this unless this option is enabled (to prevent empty values from appearing like a lack of activity)
Expand Down