You are here: Foswiki>Tasks Web>Item2146 (23 Sep 2009, MichaelDaum)Edit Attach

Item2146: SEARCH mangles header format string

pencil
Priority: Normal
Current State: Closed
Released In:
Target Release: n/a
Applies To: Engine
Component:
Branches:
Reported By: MichaelDaum
Waiting For:
Last Change By: MichaelDaum
Using a
header="<h2>Results:</h2>"
may become a
<j2>Result:</h2>
.

This probably also fixes an issue where an empty string as a header is not accepted.

--- lib/Foswiki/Search.pm       (revision 5091)
+++ lib/Foswiki/Search.pm       (working copy)
@@ -516,7 +516,7 @@
           split( /%REPEAT%/, $tmplTable );

         unless ($noHeader) {
-            $params{header} |= $beforeText;
+            $params{header} = $beforeText unless defined $params{header};
         }

-- MichaelDaum - 23 Sep 2009

ItemTemplate edit

Summary SEARCH mangles header format string
ReportedBy MichaelDaum
Codebase trunk
SVN Range Foswiki-1.0.7, Sun, 20 Sep 2009, build 5061
AppliesTo Engine
Component
Priority Normal
CurrentState Closed
WaitingFor
Checkins distro:5192a817b8e9
TargetRelease n/a
ReleasedIn
Topic revision: r1 - 23 Sep 2009, MichaelDaum
The copyright of the content on this website is held by the contributing authors, except where stated elsewhere. See Copyright Statement. Creative Commons License    Legal Imprint    Privacy Policy