Mercurial > SimpleWebPresenter
changeset 130:ee5f98a0bc93
Retrieve documents from DOCUMENT_ROOT, not SCRIPT_ROOT
| author | Tom Fredrik Blenning <bfg@bfgconsult.no> |
|---|---|
| date | Fri, 13 Jan 2023 18:08:45 +0100 |
| parents | 16c3ee204330 |
| children | 6b882fb6ea46 |
| files | InputParser.inc index.php |
| diffstat | 2 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- 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);
--- 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();
