keep original REQUEST_URI in ORIG_REQUEST_URI when modifying it

This commit is contained in:
Ralf Becker 2021-07-19 14:15:16 +02:00
parent 10c24c1830
commit 45d77b594d

View File

@ -636,6 +636,7 @@ class WebDAV extends HTTP_WebDAV_Server_Filesystem
{
if ($_SERVER['REQUEST_METHOD'] == 'GET' && (($this->force_download = strpos($_SERVER['REQUEST_URI'],'?download')) !== false))
{
$_SERVER['ORIG_REQUEST_URI'] = $_SERVER['REQUEST_URI'];
$_SERVER['REQUEST_URI'] = substr($_SERVER['REQUEST_URI'],0,$this->force_download);
}
parent::__construct();