LiteSpeed Support Forums

LiteSpeed Support Forums (http://www.litespeedtech.com/support/forum/index.php)
-   General (http://www.litespeedtech.com/support/forum/forumdisplay.php?f=25)
-   -   [solved] ssi echo encoding (http://www.litespeedtech.com/support/forum/showthread.php?t=6384)

Javarome 11-21-2012 03:03 PM

[solved] ssi echo encoding
 
Hello,

Not sure that this is a bug, so I'm posting in this 'General' category.

I am setting a custom variable to contain some HTML code, like below (a link to "1969" with the last '9' excluded from the link in this example):

<!--#set var="h1" value="<a href=\"..\">196</a>9" -->

then just the line below I'm including a sub-file that is intended to use it:

<!--#include virtual="/header.html" -->

and finally, the header.html code is intended to display such a value:

<!--#echo encoding="none" var="h1" -->

Unfortunately, the result of the inclusion lead to the value interpreted as if the default "entity" encoding could not be changed :

&lt;a href=\&quot;..\&quot;&gt;196&lt;/a&gt;9

Apparently, this should have worked on Apache.
What could I've done wrong?

Thanks for your help.

mistwang 11-21-2012 04:40 PM

that's indeed a bug in SSI processing.
Please upgrade to the latest 4.2.1 build:

/usr/local/lsws/admin/misc/lsup.sh -f -v 4.2.1

Javarome 11-21-2012 05:40 PM

Thank you mistwang.
Now I need to convince my web hosting provider to upgrade your software ;)


All times are GMT -7. The time now is 04:20 AM.