Project

General

Profile

« Previous | Next » 

Revision 13622

web/.htaccess, username_prefix.php: username-based prefix subpaths: support dotpath in query string (which will be appended verbatim to the prefix). use "__?@__" instead of "__?__&" to signal username-based prefix, so that the query string does not end in a dangling & .

View differences:

username_prefix.php
12 12
	header("Location: ".($_SERVER["PHP_AUTH_USER"] !== ""
13 13
			? ($_SERVER["QUERY_STRING"] !== ""
14 14
				? /*prepend to query string*/$_SERVER["SCRIPT_URL"]
15
					."?.".$subpath."&".rtrim($_SERVER["QUERY_STRING"], "&")
15
					."?.".$subpath.ltrim($_SERVER["QUERY_STRING"], "@")
16 16
				: $_SERVER["REQUEST_URI"]/*ends in ? */.$subpath
17 17
			)
18 18
			: rtrim($_SERVER["REQUEST_URI"], "?") #user empty->just display page

Also available in: Unified diff