Private
Public Access
1
0

security fixes

This commit is contained in:
2024-12-02 22:03:53 +01:00
parent b33f59e636
commit a69384fdd3
4 changed files with 10 additions and 2 deletions

View File

@@ -888,6 +888,10 @@ def get_dates_timeperiod(request, startdatestring='', enddatestring='',
startdate = timezone.now()-timezone.timedelta(days=5)
startdate = startdate.date()
enddate = timezone.now().date()
except parser.ParserError:
startdate = timezone.now()-timezone.timedelta(days=5)
startdate = startdate.date()
enddate = timezone.now().date()
if startdate > enddate:
e = startdate