Project

General

Profile

« Previous | Next » 

Revision 13671

bugfix: web/index.php: directory index: use QUERY_STRING, not HTTP_AUTHORIZATION (HTTP_AUTHORIZATION was probably left over from a previous attempt to provide username-based prefix subpaths)

View differences:

trunk/web/index.php
244 244
# full directory index
245 245
# to fix bug, only display if invoked as "__.org/", not "__.org/index.php"
246 246
if (substr($_SERVER["SCRIPT_URI"], -1) === '/')
247
	fpassthru(fopen($_SERVER["SCRIPT_URI"]."all?".$_SERVER["HTTP_AUTHORIZATION"], "r"));
247
	fpassthru(fopen($_SERVER["SCRIPT_URI"]."all?".$_SERVER["QUERY_STRING"], "r"));
248 248
?>
249 249
	</body>
250 250
</html>

Also available in: Unified diff