diff MoinMoin/PageGraphicalEditor.py @ 2983:7b0aadb97d01

new antispam stuff: textchas (text CAPTCHAs), cleanup AttachFile handler (port from 1.6)
author Thomas Waldmann <tw AT waldmann-edv DOT de>
date Sun, 06 Jan 2008 02:49:32 +0100
parents ba14d391c2ba
children b545446562a0
line wrap: on
line diff
--- a/MoinMoin/PageGraphicalEditor.py	Sat Jan 05 23:41:20 2008 +0100
+++ b/MoinMoin/PageGraphicalEditor.py	Sun Jan 06 02:49:32 2008 +0100
@@ -288,6 +288,9 @@
 <input type="hidden" name="editor" value="gui">
 ''' % (button_spellcheck, cancel_button_text, ))
 
+        from MoinMoin.security.textcha import TextCha
+        request.write(TextCha(request).render())
+
         self.sendconfirmleaving() # TODO update state of flgChange to make this work, see PageEditor
 
         # Add textarea with page text