コード例 #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"))
コード例 #2
0
ファイル: views.py プロジェクト: fiatjaf/formspree
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"))
コード例 #3
0
ファイル: views.py プロジェクト: ajabo/formspree
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'))
コード例 #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'))