[Resolved] ssi conditional not being evaluated

Status
Not open for further replies.
#1
hello,

i'm using ssi conditionals without issue in several places in an application i'm porting from apache, but this one is apparently not being evaluated:

Code:
<!--#set var="test" value="" -->

<!--#if expr="${HTTP_USER_AGENT} = /X11; Linux i686;/" -->
<!--#set var="test" value="working" -->
<!--#else -->
<!--#set var="test" value="still not working" -->
<!--#endif -->
is the issue syntax or something else?

let me know please!

thanks!
 

mistwang

LiteSpeed Staff
#2
There is a bug in SSI engine, has been fixed with latest 4.2.20 build, please do a force reinstall for run command
Code:
/usr/local/lsws/admin/misc/lsup.sh -f -v 4.2.20
 
Last edited by a moderator:
#3
thank you mistwang!

for the purpose of clarity: proposed solution not tested, as i determined a better way to accomplish my objective before solution was proposed.
 
Last edited:

NiteWave

Administrator
#4
I confirmed the new version has fixed the issue.

to test, in .htaccess, add
Code:
Options +Includes
AddType text/html .shtml
AddOutputFilter INCLUDES .shtml
then rename the test file with .shtml extension.
 
Last edited by a moderator:
Status
Not open for further replies.
Top