diff --git a/composer.json b/composer.json index 56fda6eb..ca80c519 100644 --- a/composer.json +++ b/composer.json @@ -19,7 +19,7 @@ "role": "Developer" }], "require": { - "php": ">=7.1.0,<8.2.0", + "php": ">=7.1.0,<8.3.0", "marc1706/phpbb-text-shortener": "^0.3.0" }, "extra": { diff --git a/portal/fetch_posts.php b/portal/fetch_posts.php index dcf1ab34..6a1051a9 100644 --- a/portal/fetch_posts.php +++ b/portal/fetch_posts.php @@ -251,7 +251,7 @@ class fetch_posts ), ), 'WHERE' => $this->topic_type . ' - ' . $post_time . ' + ' . $this->db->sql_escape($post_time) . ' AND t.topic_status <> ' . ITEM_MOVED . ' AND t.topic_visibility = 1 AND t.topic_moved_id = 0 @@ -266,11 +266,11 @@ class fetch_posts // Cache queries for 30 seconds if ($number_of_posts != 0) { - $result = $this->db->sql_query_limit($sql, $number_of_posts, $start, 30); + $result = $this->db->sql_query_limit($sql, $number_of_posts, $start, 10); } else { - $result = $this->db->sql_query($sql, 30); + $result = $this->db->sql_query($sql, 15); } return $result; @@ -634,7 +634,7 @@ class fetch_posts } else { - $message = str_replace("\n", '
', $row['post_text']); + $message = str_replace("\n", "\r", $row['post_text']); } return $message;