# HG changeset patch # User Tom Fredrik Blenning # Date 1673629725 -3600 # Node ID ee5f98a0bc933eb3da468882b50c2b896ce55091 # Parent 16c3ee204330cf9ac6aefca5fabc1b6386f0498c Retrieve documents from DOCUMENT_ROOT, not SCRIPT_ROOT diff -r 16c3ee204330 -r ee5f98a0bc93 InputParser.inc --- a/InputParser.inc Wed Dec 28 11:20:19 2022 +0100 +++ b/InputParser.inc Fri Jan 13 18:08:45 2023 +0100 @@ -31,7 +31,7 @@ $this->options = new Options($this->master); $this->options->setCache($cache); $base=basePath(); - $base=$_SERVER['CONTEXT_DOCUMENT_ROOT']; + $base=$_SERVER['DOCUMENT_ROOT']; $this->options->setBasePath($base); $this->options->setCacheable(true); diff -r 16c3ee204330 -r ee5f98a0bc93 index.php --- a/index.php Wed Dec 28 11:20:19 2022 +0100 +++ b/index.php Fri Jan 13 18:08:45 2023 +0100 @@ -24,7 +24,7 @@ try { $base=basePath(); - $base=$_SERVER['CONTEXT_DOCUMENT_ROOT']; + $base=$_SERVER['DOCUMENT_ROOT']; $target=$base . "/master.xml"; $input = new InputParser($target, $cache); $input->display();