diff --git a/nyaa/search.py b/nyaa/search.py
index ea8eb3c..364aeb6 100644
--- a/nyaa/search.py
+++ b/nyaa/search.py
@@ -74,6 +74,8 @@ def search_elastic(term='', user=None, sort='id', order='desc',
rss=False, admin=False, logged_in_user=None,
per_page=75, max_search_results=1000):
# This function can easily be memcached now
+ if page > 4294967295:
+ flask.abort(404)
es_client = Elasticsearch()
@@ -263,6 +265,9 @@ class QueryPairCaller(object):
def search_db(term='', user=None, sort='id', order='desc', category='0_0',
quality_filter='0', page=1, rss=False, admin=False,
logged_in_user=None, per_page=75):
+ if page > 4294967295:
+ flask.abort(404)
+
sort_keys = {
'id': models.Torrent.id,
'size': models.Torrent.filesize,
diff --git a/nyaa/static/css/main.css b/nyaa/static/css/main.css
index b7dfa70..2136a55 100644
--- a/nyaa/static/css/main.css
+++ b/nyaa/static/css/main.css
@@ -438,8 +438,8 @@ body.dark .table-bordered > tbody > tr > td {
body.dark table.torrent-list tbody .comments {
border-color: #212121;
- color: #d6d6d6;
- background-color: #4c4c4c;
+ color: #247fcc;
+ background-color: #2f2c2c;
}
/* trusted */
diff --git a/nyaa/templates/layout.html b/nyaa/templates/layout.html
index 737847d..a37009e 100644
--- a/nyaa/templates/layout.html
+++ b/nyaa/templates/layout.html
@@ -53,7 +53,7 @@
-
+
{% if config.SITE_FLAVOR == 'nyaa' %}
{% elif config.SITE_FLAVOR == 'sukebei' %}