mirror of
https://gitlab.com/davical-project/davical.git
synced 2026-05-31 03:34:18 +00:00
Pass through any GET parameters on the .well-known/timezone URL.
This commit is contained in:
parent
f01e6f5eb5
commit
72c25cf799
@ -21,7 +21,12 @@ switch ( $request->path ) {
|
|||||||
$request->DoResponse(301); // Moved permanently
|
$request->DoResponse(301); // Moved permanently
|
||||||
// does not return.
|
// does not return.
|
||||||
case '/.well-known/timezone':
|
case '/.well-known/timezone':
|
||||||
header('Location: ' . str_replace('/caldav.php', '', ConstructURL('/tz.php',true)) );
|
$parameters = '';
|
||||||
|
foreach( $_GET as $k => $v ) {
|
||||||
|
$parameters .= ($parameters == '' ? '?' : '&' );
|
||||||
|
$parameters .= $k.'='.rawurlencode($v);
|
||||||
|
}
|
||||||
|
header('Location: ' . str_replace('/caldav.php', '', ConstructURL('/tz.php',true)).$parameters );
|
||||||
$request->DoResponse(301); // Moved permanently
|
$request->DoResponse(301); // Moved permanently
|
||||||
// does not return.
|
// does not return.
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user