autoindex: Use of undefined constant uri

#1
Hello,

I get the following PHP notice when I view a directory listing:

Notice: Use of undefined constant uri - assumed 'uri' in /opt/lsws/share/autoindex/default.php on line 366
Line 366 says:
$base = substr( $uri, 0, strlen( uri ) - 1 );
Shouldn't this be strlen($uri)?

I installed 2.1.19 Standard first, updated to 2.1.20 and then to 2.2 (all via your great version-management WebGUI), if that matters somehow :)

Regards,
Philipp
 

xing

LiteSpeed Staff
#2
Philipp,

You're correct. The php code fix for the directory listing generator will in the next release. Thanks for the bug report. =)

Xing
 
Top