Skip to content

Commit

Permalink
Escape SQL
Browse files Browse the repository at this point in the history
  • Loading branch information
gogdzl committed Oct 25, 2024
1 parent 7d0721a commit f7f4035
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion projects/plugins/crm/admin/dashboard/dashboard.ajax.php
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ function jetpackcrm_dash_refresh() {
);
}

$tz_offset = jpcrm_get_wp_timezone_offset();
$tz_offset = esc_sql( (string) jpcrm_get_wp_timezone_offset() );
$wpdb->query( 'SET time_zone = "' . $tz_offset . '";' );

// next we want the contact chart which is total contacts between the dates grouped by day, week, month, year
Expand Down

0 comments on commit f7f4035

Please sign in to comment.