Skip to content

Commit

Permalink
Merge branch 'master' into css-styling
Browse files Browse the repository at this point in the history
  • Loading branch information
jnew-gh committed May 7, 2021
2 parents 2b7ebfa + 1e13d77 commit 9b887ef
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 8 deletions.
8 changes: 1 addition & 7 deletions dmarcts-report-viewer-report-list.php
Expand Up @@ -228,7 +228,7 @@ function tmpl_reportList($reports, $sort) {
// Report Status
// --------------------------------------------------------------------------
if ( $report_status != "all" && $report_status != "" ) {
$where .= ( $where <> '' ? " AND" : " WHERE" ) . " " . $dmarc_result[$report_status]['status_sql_where'];
$where .= ( $where <> '' ? " AND" : " WHERE" ) . " " . $mysqli->real_escape_string($dmarc_result[$report_status]['status_sql_where']);
}

// Domains
Expand Down Expand Up @@ -272,10 +272,6 @@ function tmpl_reportList($reports, $sort) {
SELECT
SUM(rcount) AS rcount,
serial,
dkim_align,
spf_align,
dkimresult,
spfresult,
MIN(
(CASE
WHEN dkim_align = 'fail' THEN 0
Expand Down Expand Up @@ -345,8 +341,6 @@ function tmpl_reportList($reports, $sort) {
ON
report.serial = rptrecord.serial
$where
GROUP BY
serial
ORDER BY
" . $cookie_options['sort_column'] . ( $cookie_options['sort'] ? " ASC" : " DESC" )
;
Expand Down
2 changes: 1 addition & 1 deletion dmarcts-report-viewer.php
Expand Up @@ -231,7 +231,7 @@ function html ($domains = array(), $orgs = array(), $periods = array() ) {
// --------------------------------------------------------------------------
configure();

setcookie("dmarcts-options-tmp", "", "01 Jan 1970 00:00:00 UTC", "/");
setcookie("dmarcts-options-tmp", "", time() - 3600, "/");

// Make a MySQL Connection using mysqli
// --------------------------------------------------------------------------
Expand Down

0 comments on commit 9b887ef

Please sign in to comment.