Add safe_join: returns the filename used by send_from_directory.

Signed-off-by: Armin Ronacher <armin.ronacher@active-4.com>
This commit is contained in:
Simon Sapin 2011-04-04 16:53:04 +02:00 committed by Armin Ronacher
parent 0e4cd2e651
commit 7ed3196e8d
3 changed files with 30 additions and 8 deletions

View file

@ -19,7 +19,7 @@ from .app import Flask, Request, Response
from .config import Config
from .helpers import url_for, jsonify, json_available, flash, \
send_file, send_from_directory, get_flashed_messages, \
get_template_attribute, make_response
get_template_attribute, make_response, safe_join
from .globals import current_app, g, request, session, _request_ctx_stack
from .ctx import has_request_context
from .module import Module