00456: Markup searchbox produce an incorrect link

Summary: Markup searchbox produce an incorrect link
Created: 2005-06-22 03:11
Status: Closed - not a bug
Category: Bug
From: MaBen
Priority: 4
Version: 2.0beta 38

Description: The Markup search box produces an incorrect Link like: https://www.xyz.ch/Wiki/Main/HomePage?n=Main%252FSearchWiki&q=wiki The correct would be: https://www.xyz.ch/Wiki/Main/HomePage?n=Main%2FSearchWiki&q=wiki Dual escaped. Interesting to state: The embedded search capability in the PMwiki Skin works very well.

Can you provide an example here on pmwiki.org...? --Pm

Unfortunately it is not possible to reproduce the problem on pmwiki.org. I discovered the same problem in the pmwiki newsgroup: http://thread.gmane.org/gmane.comp.web.wiki.pmwiki.user/13048 I will make a snapshot of the generated HTML code. MaBen June 23, 2005, at 07:40 AM

I found the reason of the wrong searchbox link output:

After I swiched off the first rewriterule in the file named .htaccess the link is OK:

  Options +FollowSymLinks
  RewriteEngine on

  # Redirect browsers that use an empty URL
  # to the default URL.
  #RewriteRule ^/?$ http://some.domain/path/to/wiki/dir/Main/HomePage [R=permanent,QSA,L]

  # Map URLs that start with anything but a lower-case letter to pmwiki.php.
  # The remaining URLs are left to the default map-to-filesystem routine of Apache.
  RewriteRule ^([^/a-z].*) pmwiki.php?n=$1 [QSA,L]

MaBen June 28, 2005, at 02:20 PM