diff -u b/core/modules/statistics/statistics.php b/core/modules/statistics/statistics.php --- b/core/modules/statistics/statistics.php +++ b/core/modules/statistics/statistics.php @@ -22,6 +22,7 @@ ->get('count_content_views'); if ($views) { + //Checks if posted nid is in range of valid integers and prevent a PDOException. $nid = filter_input(INPUT_POST, 'nid', FILTER_VALIDATE_INT, [ 'options' => [ 'min_range' => 0,