* John M. Dlugosz <[email protected]> [2011-03-15 08:10]:
> <img src="[% c.uri_for("/static/gallery",rec.dirname,rec.filename) %]"
> alt="photo" />
>
> That works (using Smart_URI settings to leave off the host).
> But it did not escape out the '&' in the filename! Is that
> a bug?
No. It’s exactly the right answer: ` ` → `%20` is URI escaping
(which `uri_for` does, as it should), `&` → `&` is HTML
escaping (which `uri_for` has nothing to do with). You want
<img src="[% c.uri_for("/static/gallery",rec.dirname,rec.filename) | html
%]" alt="photo" />
Regards,
--
Aristotle Pagaltzis // <http://plasmasturm.org/>
_______________________________________________
List: [email protected]
Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst
Searchable archive: http://www.mail-archive.com/[email protected]/
Dev site: http://dev.catalyst.perl.org/