Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/CarnetApp/CarnetNextcloud.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPhie <phie@phie.ovh>2019-02-08 22:24:10 +0300
committerPhie <phie@phie.ovh>2019-02-08 22:24:10 +0300
commit8a653430ec14c9b9d929713e0f335a6555e6786c (patch)
treed7767b0867d25c58131364e395f74ec422d4355f /templates
parent6b23e90f3b1dfa66017fec97e414113e9c2c7b98 (diff)
correcting writer for proxied nextcloud
Diffstat (limited to 'templates')
-rwxr-xr-xtemplates/writer.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/templates/writer.php b/templates/writer.php
index b877a7c..c4f90c4 100755
--- a/templates/writer.php
+++ b/templates/writer.php
@@ -28,7 +28,7 @@ $file = str_replace("<!ROOTPATH>", $root."/CarnetElectron/", $file);
$root = substr(__DIR__, strlen($_SERVER['DOCUMENT_ROOT']));
$urlGenerator = \OC::$server->getURLGenerator();
$file = str_replace("<!ROOTURL>", $root."/CarnetElectron/", $file);
-$file = str_replace("<!APIURL>", $urlGenerator->linkToRouteAbsolute("carnet.page.index"), $file);
+$file = str_replace("<!APIURL>", parse_url($urlGenerator->linkToRouteAbsolute("carnet.page.index"), PHP_URL_PATH), $file);
echo $file;
?> \ No newline at end of file