mod_ssi (apparently) won't echo variables set using #set
With the sample SSI document:
Expected result: "bar"
Updated by Anonymous about 15 years ago
Ignore my previous patch mod_ssi-recursion-ssi-vars-fix-1.5.0svn2299.patch, because it is wrong!
First of all it looks like a hack and second it doesn't work right if you have multiple layers of nested requests. A correct implementation of a patch for making SSI variables be interpreted right in nested requests/recursive includes is in ticket:536 (apply both patches if you want SSI to work more as expected).
And also the mod_ssi-echo-ssi-var-1.5.0svn2299.patch could be written a little shorter/better: http://gw.tnode.com/0036-LighttpdDevelopment/Files-Patches/
Updated by gstrauss over 7 years ago
- Description updated (diff)
- Target version set to 1.5.0
Moving ticket to Target version 1.5.0
In the 1.4.x branch, this was fixed in:
commit d8e028e06900b781bebfe2f52cc7254444a31716 Author: fbrosson <firstname.lastname@example.org> Date: Sun Jan 3 14:48:07 2016 +0000 [mod_ssi] enhance support for ssi vars Try ssi_vars if ssi_cgi_env does not have a matching var name. Allow var names to also include digits after the initial letter or underscore. From: fbrosson <email@example.com> git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@3069 152afb58-edef-0310-8abb-c4023f1b3aa9
Also available in: Atom