diff MoinMoin/macro/AdvancedSearch.py @ 3040:8608b258f8e6

bug fix of MoinMoinBugs/MoveAttachmentNotWorkingWithModPython (thanks to Boleslaw Kulbabinski) (ported from 1.6)
author Reimar Bauer <rb.proj AT googlemail DOT com>
date Tue, 05 Feb 2008 21:22:56 +0100
parents 388204baf00f
children 3489709aa99f
line wrap: on
line diff
--- a/MoinMoin/macro/AdvancedSearch.py	Mon Feb 04 10:17:58 2008 +0100
+++ b/MoinMoin/macro/AdvancedSearch.py	Tue Feb 05 21:22:56 2008 +0100
@@ -8,11 +8,11 @@
     @license: GNU GPL, see COPYING for details.
 """
 
+from MoinMoin import wikiutil
 from MoinMoin.i18n import languages
 from MoinMoin.widget import html
 from MoinMoin.util.web import makeSelection
 from MoinMoin.support.python_compatibility import sorted
-
 import mimetypes
 
 Dependencies = ['pages']
@@ -135,7 +135,7 @@
 
     # the dialogue
     return f.rawHTML('\n'.join([
-        u'<form method="get" action="">',
+        u'<form method="get" action="%s/%s">' % (macro.request.getScriptname(), wikiutil.quoteWikinameURL(macro.request.formatter.page.page_name)),
         u'<div>',
         u'<input type="hidden" name="action" value="fullsearch">',
         u'<input type="hidden" name="advancedsearch" value="1">',