Re: problems with new escape method
Brandon Long <[email protected]> Mon, 11 Feb 2008 00:07:11 -0800
| Newsgroups | gmane.text.clearsilver.general |
|---|---|
| Organization | Fiction L Networks |
| Message-ID | <20080211080711.GB7127@bl1> |
On 02/08/08 georgeandhelenwilliams uttered the following other thing:
> Hi
>
> I have ported clearsilver (well all the CS and HDF stuff, not the CGI
> stuff) to Windows, and am experiencing a problem. I do think that it
> is due to my port, but I'm not certain as I dont have access to a
> unix box to check the behaviour of the original code. Please can
> someone comment on the problem before I go chasing it:
>
> I can get the new escape method to work as I expect in the following
> constructs:
>
> 1. regular use of a variable:
> <?cs escape: "html" ?><?cs var:data1 ?><?cs /escape ?>
>
> 2. around a variable in an if statement
> <?cs if:data1 ?><?cs escape: "html" ?><?cs var:data1 ?><?cs /escape ?
> ><?cs else ?>nonsense<?cs /if ?>
>
> but..there are couple of circumstances in which it doesn't work,
> where I would expect it to.
>
> 1. regular use of an alt statement:
> <?cs escape: "html" ?><?cs alt:data1 ?>nonsense<?cs /alt ?><?
> cs /escape ?>
Nope, this is a bug in the existing code. It looks like auto-escaping
wasn't implemented for alt tags. I've filed a bug.
> 2. around a whole if statement
> <?cs escape: "html" ?><?cs if:data1 ?><?cs var:data1 ?><?cs else ?
> >nonsense<?cs /if ?><?cs /escape ?>
Yeap, this is a known bug, fixed in our code but not yet released.
There'll probably be a new release in the next couple weeks, we have a
major new feature in the works which still needs some testing (and
probably means version 0.11... though maybe I need to work on the
version numbers).
Brandon
--
"I knew it was a great Halloween costume, but I never expected to be
attacked by a mob of angry villagers." -- Bizarro 11/10/2003