<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Recent changes to bugs</title><link>https://sourceforge.net/p/html-template/bugs/</link><description>Recent changes to bugs</description><atom:link href="https://sourceforge.net/p/html-template/bugs/feed.rss" rel="self"/><language>en</language><lastBuildDate>Wed, 07 May 2008 20:37:16 -0000</lastBuildDate><atom:link href="https://sourceforge.net/p/html-template/bugs/feed.rss" rel="self" type="application/rss+xml"/><item><title>include folder error</title><link>https://sourceforge.net/p/html-template/bugs/9/</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;Hy!&lt;/p&gt;
&lt;p&gt;My problem is with the following situation:&lt;br /&gt;
when a site.tmpl contains:&lt;br /&gt;
&amp;lt;TMPL_INCLUDE include/box2_start.tmpl&amp;gt;&lt;br /&gt;
&amp;lt;TMPL_INCLUDE include/box2_end.tmpl&amp;gt;&lt;br /&gt;
&amp;lt;TMPL_INCLUDE include/box2_start.tmpl&amp;gt; &amp;lt;!-- here is the error --&amp;gt;&lt;br /&gt;
&amp;lt;TMPL_INCLUDE include/box2_end.tmpl&amp;gt;&lt;/p&gt;
&lt;p&gt;i have simple box_start ant box_end templates too, and the end of the boxes does not different, so the include/box2_end.tmpl looks like this:&lt;br /&gt;
&amp;lt;TMPL_INCLUDE box_end.tmpl&amp;gt;&lt;/p&gt;
&lt;p&gt;The problem is from the marked line in the site.tmpl I got an error, what tells me how include/box2_start.tmpl does not found, and when I changed the lines after the error to&lt;br /&gt;
&amp;lt;TMPL_INCLUDE box2_start.tmpl&amp;gt; ...etc&lt;/p&gt;
&lt;p&gt;it found them...&lt;/p&gt;
&lt;p&gt;Please tell me if it isn't clear, I send my files unchanged...&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">u-foka</dc:creator><pubDate>Wed, 07 May 2008 20:37:16 -0000</pubDate><guid>https://sourceforge.netc978a5a16eea4af91c5bf71b630ca745a24bc25e</guid></item><item><title>ESCAPE=0 ineffective when default_escape used</title><link>https://sourceforge.net/p/html-template/bugs/8/</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;When default_escape is set, using ESCAPE=0 on a &amp;lt;TMPL_VAR&amp;gt; tag does not disable escaping, as the documentation implies that it should.&lt;/p&gt;
&lt;p&gt;The problem seems to be that the regexes that parse the ESCAPE clause match the zero but do not capture it. The result is that specifying ESCAPE=0 is effectively the same as omitting the ESCAPE clause altogether.&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Bob Showalter</dc:creator><pubDate>Tue, 28 Nov 2006 20:15:56 -0000</pubDate><guid>https://sourceforge.netb9290801689764398338a786a00ea4d056839e21</guid></item><item><title>ESCAPE=JS does not handle &amp;#39;</title><link>https://sourceforge.net/p/html-template/bugs/7/</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;The following line will cause a js error:&lt;/p&gt;
&lt;p&gt;&amp;lt;span onclick="alert('foo&amp;amp;#39;bar');"&amp;gt;Test&amp;lt;/span&amp;gt;&lt;/p&gt;
&lt;p&gt;This occurs because browsers will convert the &amp;amp;#39; to&lt;br /&gt;
a single quote when it puts the document together, and&lt;br /&gt;
before it runs the javascript. This only occurs when it&lt;br /&gt;
is part of an attribute, such as onclick, and not when&lt;br /&gt;
it occurs in a separate script block.&lt;/p&gt;
&lt;p&gt;The same alert in a script block will output the&lt;br /&gt;
literal &amp;amp;#39;&lt;/p&gt;
&lt;p&gt;When using ESCAPE=JS this should probably be escaped.&lt;/p&gt;
&lt;p&gt;@@ -2759,6 +2759,7 @@&lt;br /&gt;
}&lt;br /&gt;
s/\\/\\\\/g;&lt;br /&gt;
s/'/\\'/g;&lt;br /&gt;
+        s/&amp;amp;#39;/\\&amp;amp;amp;#39;/g;&lt;br /&gt;
s/"/\\"/g;&lt;br /&gt;
s/\n/\\n/g;&lt;br /&gt;
s/\r/\\r/g;&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Anonymous</dc:creator><pubDate>Fri, 26 May 2006 20:56:54 -0000</pubDate><guid>https://sourceforge.net6befafacf144edeb5bef7cfd856b446280000a0f</guid></item><item><title>TMPL_VAR default misbehaves on js or url es</title><link>https://sourceforge.net/p/html-template/bugs/6/</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;If a TMPL_VAR has a DEFAULT set as well as ESCAPE set to either JS or &lt;br /&gt;
URL, then default value will be prepended to the variable's value even if it &lt;br /&gt;
is not empty.&lt;/p&gt;
&lt;p&gt;This can be fixed by modifying line 2723 in HTML/Template.pm to:&lt;br /&gt;
*line = \$parse_stack[++$x] if grep {ref $line eq $_} &lt;br /&gt;
('HTML::Template::ESCAPE', 'HTML::Template::JSESCAPE', &lt;br /&gt;
'HTML::Template::URLESCAPE');&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Mina Naguib</dc:creator><pubDate>Sat, 25 Mar 2006 20:40:30 -0000</pubDate><guid>https://sourceforge.net267a4c26b169eb9bae0c3a9ada42a1c667b07daf</guid></item><item><title>&lt;tmpl_if&gt; is not working properly.</title><link>https://sourceforge.net/p/html-template/bugs/5/</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;test.tmpl:&lt;br /&gt;
----------&lt;br /&gt;
&amp;lt;html&amp;gt;&amp;lt;body&amp;gt;&lt;br /&gt;
&amp;lt;tmpl_if admin&amp;gt;&lt;br /&gt;
You are admin&lt;br /&gt;
&amp;lt;/tmpl_if&amp;gt;&lt;br /&gt;
&amp;lt;/body&amp;gt;&amp;lt;/html&amp;gt;&lt;/p&gt;
&lt;p&gt;test.pl:&lt;br /&gt;
--------&lt;br /&gt;
use HTML::Template;&lt;br /&gt;
$tmpl = HTML::Template-&amp;gt;new(filename =&amp;gt; "test.tmpl");&lt;br /&gt;
$tmpl-&amp;gt;param("admin" =&amp;gt; "1");&lt;br /&gt;
print $tmpl-&amp;gt;output;&lt;/p&gt;
&lt;p&gt;Result:&lt;br /&gt;
-------&lt;br /&gt;
HTML::Template : Attempt to set nonexistent parameter &lt;br /&gt;
'admin' - this parameter name doesn't match any &lt;br /&gt;
declarations in the template file : (die_on_bad_params &lt;br /&gt;
=&amp;gt; 1) at view.pl line 38&lt;/p&gt;
&lt;p&gt;I think it is an issue. I don't want to bo forced to &lt;br /&gt;
have &amp;lt;tmpl_var admin&amp;gt; in my template in order to use &lt;br /&gt;
&amp;lt;tmpl_if admin&amp;gt;.&lt;/p&gt;
&lt;p&gt;Regards,&lt;br /&gt;
tomekM&lt;/p&gt;&lt;/div&gt;</description><pubDate>Tue, 22 Nov 2005 11:29:32 -0000</pubDate><guid>https://sourceforge.net102d776924d8f96b60b79310838b3bf99e32743b</guid></item><item><title>output(print_to =&amp;gt; *FH) fails on win32</title><link>https://sourceforge.net/p/html-template/bugs/4/</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;Trying to use $tmpl-&amp;amp;gt;output(print_to =&amp;amp;gt; *FHANDLE) under&lt;br /&gt;
win32 fails.  It skips any filters defined in the&lt;br /&gt;
-&amp;amp;gt;new() arguments, and does not write output to disk.&lt;/p&gt;
&lt;p&gt;Given that print FHANDLE $tmpl-&amp;amp;gt;output() is a&lt;br /&gt;
reasonable alternative, perhaps this should just be&lt;br /&gt;
noted in the documentation.&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Anonymous</dc:creator><pubDate>Sat, 23 Feb 2002 13:00:07 -0000</pubDate><guid>https://sourceforge.net393a4958ced808c98337795a28d8fdb36c607217</guid></item><item><title>path does not work with scalarref</title><link>https://sourceforge.net/p/html-template/bugs/3/</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;TMPL_INCLUDE is unable to find a file that is in the&lt;br /&gt;
path if scalarref mode is used.  I was able to correct&lt;br /&gt;
the problem by the following change to the Template.pm&lt;br /&gt;
file&lt;/p&gt;
&lt;p&gt;1721c1721&lt;br /&gt;
&amp;amp;lt;           my @path = split('/',&lt;br /&gt;
$options-&amp;amp;gt;{filepath});&lt;br /&gt;
---&lt;br /&gt;
&amp;amp;gt;           my @path = split('/', $options-&amp;amp;gt;{path});&lt;/p&gt;
&lt;p&gt;In words, it is ignoring the path specification when&lt;br /&gt;
doing TMPL_INCLUDE.&lt;/p&gt;
&lt;p&gt;Here is a fragment of a test case.&lt;/p&gt;
&lt;p&gt;my $template = HTML::Template-&amp;amp;gt;new (scalarref =&amp;amp;gt;&lt;br /&gt;
\$template_string,&lt;br /&gt;
path =&amp;amp;gt; [&amp;amp;quot;/web/web/cgi-bin/biodata&amp;amp;quot;,&lt;br /&gt;
$bdpath]);&lt;/p&gt;
&lt;p&gt;&amp;amp;lt;TMPL_INCLUDE NAME=&amp;amp;quot;table.inc&amp;amp;quot;&amp;amp;gt;&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Anonymous</dc:creator><pubDate>Tue, 26 Jun 2001 21:48:33 -0000</pubDate><guid>https://sourceforge.neta6fca0e7aa253cad4d9964a62fa92b3952e9c5f8</guid></item><item><title>Doesn't pass test suite with Perl 5.6</title><link>https://sourceforge.net/p/html-template/bugs/2/</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;C:\TEMP\htm\HTML-Template-1.5&amp;amp;gt;nmake test&lt;/p&gt;
&lt;p&gt;Microsoft (R) Program Maintenance Utility   Version 6.00.8168.0&lt;br /&gt;
Copyright (C) Microsoft Corp 1988-1998. All rights reserved.&lt;/p&gt;
&lt;p&gt;C:\perl\bin\Perl.exe -Iblib\arch -Iblib\lib -IC:\perl\lib -IC:\perl\lib test.pl&lt;br /&gt;
1..23&lt;br /&gt;
ok 1&lt;br /&gt;
ok 2&lt;br /&gt;
ok 3&lt;br /&gt;
ok 4&lt;br /&gt;
ok 5&lt;br /&gt;
ok 6&lt;br /&gt;
not ok 7&lt;br /&gt;
NMAKE : fatal error U1077: 'C:\perl\bin\Perl.exe' : return code '0xff'&lt;br /&gt;
Stop.&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Anonymous</dc:creator><pubDate>Mon, 21 Feb 2000 22:07:14 -0000</pubDate><guid>https://sourceforge.netd1a863f185920e2afa690a610c7c710c76e3b9f6</guid></item><item><title>associate doesn't work with non-lowercase CGI parameters</title><link>https://sourceforge.net/p/html-template/bugs/1/</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;HTML::Template is case insensitive and internally forces all parameter names to lowercase.  CGI.pm is case sensitive.  When you try to use associate with a CGI parameter that is upper case it won't get filled in properly.&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Sam Tregar</dc:creator><pubDate>Thu, 13 Jan 2000 21:40:40 -0000</pubDate><guid>https://sourceforge.net37bfa1831a38b2aa18add8cb18abb4ef46031109</guid></item></channel></rss>