Skip to content

Commit

Permalink
- Fix unicode filename playback with proper html entity conversion
Browse files Browse the repository at this point in the history
  • Loading branch information
kwlzn committed Jul 28, 2012
1 parent afa39c4 commit d217be6
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions blast/main.py
Expand Up @@ -68,10 +68,7 @@ def play():

@app.route('/play/<path:file_str>')
def play_file(file_str):
print file_str
file_str = unescape_utf8(file_str)
print file_str
##file_str = path_replace(file_str, REPATH_MAP, reverse=True)
## block serving of all other file types (and subdirs via ..) for security reasons
if ( os.path.splitext(file_str)[1].lower() not in ALLOWED_TYPES or '../' in file_str ):
return render_template('401.html'), 401
Expand Down

0 comments on commit d217be6

Please sign in to comment.