Skip to content

Commit

Permalink
if looking up by hash we would not allow filetype extensions
Browse files Browse the repository at this point in the history
  • Loading branch information
bhanderson committed May 2, 2016
1 parent 605c79b commit 6e72080
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pbnh/app/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ def view_paste(paste_id):
data = io.BytesIO(query.get('data'))
return send_file(data, mimetype=mime)

@app.route("/<int:paste_id>.<string:filetype>")
@app.route("/<string:paste_id>.<string:filetype>")
def view_paste_with_extension(paste_id, filetype):
query = util.getPaste(paste_id)
if not query:
Expand Down

0 comments on commit 6e72080

Please sign in to comment.