Project

General

Profile

« Previous | Next » 

Revision 13624

web/username_prefix.php: use $subpath instead of $_SERVER["PHP_AUTH_USER"] for clarity

View differences:

trunk/web/username_prefix.php
9 9
else
10 10
{
11 11
	$subpath = user2path($_SERVER["PHP_AUTH_USER"]);
12
	header("Location: ".($_SERVER["PHP_AUTH_USER"] !== ""
12
	header("Location: ".($subpath !== ""
13 13
			? ($_SERVER["QUERY_STRING"] !== ""
14 14
				? /*prepend to query string*/$_SERVER["SCRIPT_URL"]
15 15
					."?.".$subpath.ltrim($_SERVER["QUERY_STRING"], "@")

Also available in: Unified diff