summaryrefslogtreecommitdiffstats
path: root/core/views/uploads.py
diff options
context:
space:
mode:
Diffstat (limited to 'core/views/uploads.py')
-rw-r--r--core/views/uploads.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/core/views/uploads.py b/core/views/uploads.py
index 5fa7d3b..dd5d25d 100644
--- a/core/views/uploads.py
+++ b/core/views/uploads.py
@@ -193,7 +193,8 @@ def logbookedit(request, year=None, slug=None):
else:
year = slug[0:4]
try:
- year = str(int(year))
+ year = str(int(year)) # but maybe slug was hand-edited to be a future year..
+ year = validate_year(year) # so fix that
except:
year = current_expo()