diff MoinMoin/theme/__init__.py @ 4424:5ad5753ae311

pre-1.9: request.form has qs args and post data, 1.9: .form only post data, .args only qs args, .values both
author Thomas Waldmann <tw AT waldmann-edv DOT de>
date Sun, 16 Nov 2008 22:20:21 +0100
parents 135d4a7dc09d
children 331686d6b068
line wrap: on
line diff
--- a/MoinMoin/theme/__init__.py	Sun Nov 16 16:50:56 2008 +0100
+++ b/MoinMoin/theme/__init__.py	Sun Nov 16 22:20:21 2008 +0100
@@ -738,10 +738,10 @@
         @return: search form html
         """
         _ = self.request.getText
-        form = self.request.form
+        form = self.request.values
         updates = {
             'search_label': _('Search:'),
-            'search_value': wikiutil.escape(form.get('value', [''])[0], 1),
+            'search_value': wikiutil.escape(form.get('value', ''), 1),
             'search_full_label': _('Text'),
             'search_title_label': _('Titles'),
             'url': self.request.href(d['page'].page_name)