Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
N
Nuovo sito
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
16
Issues
16
List
Boards
Labels
Milestones
Merge Requests
2
Merge Requests
2
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Gruppo Web
Nuovo sito
Commits
d5aac19f
Commit
d5aac19f
authored
Dec 21, 2016
by
Pietro Albini
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Return a 404 if a distro doesn't exist
parent
743b31c6
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
0 deletions
+3
-0
uitwww/download.py
uitwww/download.py
+3
-0
No files found.
uitwww/download.py
View file @
d5aac19f
...
...
@@ -183,6 +183,9 @@ class Downloads:
@
bp
.
route
(
"/<distro>"
)
def
landing
(
distro
):
if
distro
not
in
self
.
config
[
"distros"
]:
flask
.
abort
(
404
)
return
flask
.
render_template
(
"download/landing.html"
,
distro_name
=
distro
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment