diff --git a/core/views/uploads.py b/core/views/uploads.py index c43a38e..4fa98a3 100644 --- a/core/views/uploads.py +++ b/core/views/uploads.py @@ -572,9 +572,11 @@ def gpxupload(request, folder=None): @login_required_if_public def gpxfix(request): """Upload a GPX file containing a single track which is actually a single static point: for averaging + + """ def gpxvalid(name): - if Path(name).suffix.lower() in [".xml", ".gpx"]: + if Path(name).suffix.lower() in [".gpx"]: return True # dangerous, we should check the actual file binary signature return False