[Templates] Problem with URL ecoded vars? Upgraded from Template-Toolkit v 2.11 to 2.19

Vivek Khera khera@kcilink.com
Mon, 17 Sep 2007 09:38:23 -0400


--Apple-Mail-1--871777779
Content-Transfer-Encoding: 7bit
Content-Type: text/plain;
	charset=US-ASCII;
	delsp=yes;
	format=flowed


On Sep 15, 2007, at 5:11 PM, David Martin wrote:

> I got it back live today on a new host and now that all the modules  
> were in place it seems to work just fine except for one problem.   
> Some templates need to embed Flash animations and the URLs are now  
> url-encoded like  %2Fcourses%2Fwetlands%2Fm%2Fi0101.swf.
>
>

You don't want to URI encode your url's in your HTML.  You want to  
HTML encode them.  Change your |uri filter calls to |html filter  
calls.  There was a correction in the uri filter recently (last or  
prior version of TT) to make it properly escape all URI escapables.   
Thus, you want to use the correct filter, "html".


--Apple-Mail-1--871777779
Content-Transfer-Encoding: quoted-printable
Content-Type: text/html;
	charset=ISO-8859-1

<HTML><BODY style=3D"word-wrap: break-word; -khtml-nbsp-mode: space; =
-khtml-line-break: after-white-space; "><BR><DIV><DIV>On Sep 15, 2007, =
at 5:11 PM, David Martin wrote:</DIV><BR =
class=3D"Apple-interchange-newline"><BLOCKQUOTE type=3D"cite"><SPAN =
class=3D"Apple-style-span" style=3D"border-collapse: separate; =
border-spacing: 0px 0px; color: rgb(0, 0, 0); font-family: Georgia; =
font-size: 14px; font-style: normal; font-variant: normal; font-weight: =
normal; letter-spacing: normal; line-height: normal; text-align: auto; =
-khtml-text-decorations-in-effect: none; text-indent: 0px; =
-apple-text-size-adjust: auto; text-transform: none; orphans: 2; =
white-space: normal; widows: 2; word-spacing: 0px; "><P =
class=3D"MsoNormal"><FONT size=3D"3" color=3D"black" face=3D"Times New =
Roman"><SPAN style=3D"font-size:12.0pt;color:black; font-family: Times =
New Roman; font-size: 16px; "><SPAN class=3D"Apple-style-span" =
style=3D"font-family: Times New Roman; font-size: 16px; ">I got it back =
live today on a new host and now that all the modules were in place it =
seems to work just fine except for one problem.=A0 Some templates need =
to embed Flash animations and the URLs are now url-encoded like =
=A0%2Fcourses%2Fwetlands%2Fm%2Fi0101.swf.</SPAN><O:P style=3D"font-family:=
 Times New Roman; font-size: 16px; "></O:P></SPAN></FONT></P><BR =
class=3D"Apple-interchange-newline"></SPAN></BLOCKQUOTE></DIV><BR><DIV>You=
 don't want to URI encode your url's in your HTML.=A0 You want to HTML =
encode them.=A0 Change your |uri filter calls to |html filter calls.=A0 =
There was a correction in the uri filter recently (last or prior version =
of TT) to make it properly escape all URI escapables.=A0 Thus, you want =
to use the correct filter, "html".</DIV><DIV><BR =
class=3D"khtml-block-placeholder"></DIV></BODY></HTML>=

--Apple-Mail-1--871777779--