Ejemplo n.º 1
0
def thanks():
    if request.args.get("next") and not valid_url(request.args.get("next")):
        return (
            render_template("error.html",
                            title="Invalid URL",
                            text="An invalid URL was supplied"),
            400,
        )
    return render_template("forms/thanks.html", next=request.args.get("next"))
Ejemplo n.º 2
0
def thanks():
    if request.args.get("next") and not valid_url(request.args.get("next")):
        return (
            render_template(
                "error.html", title="Invalid URL", text="An invalid URL was supplied"
            ),
            400,
        )
    return render_template("forms/thanks.html", next=request.args.get("next"))
Ejemplo n.º 3
0
def thanks():
    if request.args.get('next') and not valid_url(request.args.get('next')):
        return render_template('error.html',
            title='Invalid URL', text='An invalid URL was supplied'), 400
    return render_template('forms/thanks.html', next=request.args.get('next'))
Ejemplo n.º 4
0
def thanks():
    if request.args.get('next') and not valid_url(request.args.get('next')):
        return render_template('error.html',
            title='Invalid URL', text='An invalid URL was supplied'), 400
    return render_template('forms/thanks.html', next=request.args.get('next'))