changeset 4991:aef21d16a262

forms: use secure_form to add authentication token to all html forms Towards CSRF protection ... but not yet checked
author Mads Kiilerich <madski@unity3d.com>
date Fri, 27 Mar 2015 16:25:27 +0100
parents 959a9fa7d1a1
children 569199be3475
files kallithea/lib/helpers.py
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/kallithea/lib/helpers.py	Fri Mar 27 16:25:27 2015 +0100
+++ b/kallithea/lib/helpers.py	Fri Mar 27 16:25:27 2015 +0100
@@ -36,14 +36,14 @@
 from webhelpers.html.tools import *
 from webhelpers.html.builder import make_tag
 from webhelpers.html.tags import auto_discovery_link, checkbox, css_classes, \
-    end_form, file, form, hidden, image, javascript_link, link_to, \
+    end_form, file, hidden, image, javascript_link, link_to, \
     link_to_if, link_to_unless, ol, required_legend, select, stylesheet_link, \
     submit, text, password, textarea, title, ul, xml_declaration, radio
 from webhelpers.html.tools import auto_link, button_to, highlight, \
     js_obfuscate, mail_to, strip_links, strip_tags, tag_re
 from webhelpers.number import format_byte_size, format_bit_size
 from webhelpers.pylonslib import Flash as _Flash
-from webhelpers.pylonslib.secure_form import secure_form
+from webhelpers.pylonslib.secure_form import secure_form as form
 from webhelpers.text import chop_at, collapse, convert_accented_entities, \
     convert_misc_entities, lchop, plural, rchop, remove_formatting, \
     replace_whitespace, urlify, truncate, wrap_paragraphs