From 6b7fccfb7409e701f81f88d9f3654b467344da68 Mon Sep 17 00:00:00 2001 From: Michael Vogel Date: Mon, 17 Aug 2015 08:03:24 +0200 Subject: [PATCH] Installation in a subdirectory made problems with this addon --- dav/friendica/main.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dav/friendica/main.php b/dav/friendica/main.php index 1b9fff86..05f6f714 100644 --- a/dav/friendica/main.php +++ b/dav/friendica/main.php @@ -159,7 +159,7 @@ function dav_content() if ($a->argv[2] == "new") { $o = ""; if (isset($_REQUEST["save"])) { - check_form_security_token_redirectOnErr($a->get_baseurl() . "/dav/wdcal/", "caledit"); + check_form_security_token_redirectOnErr("/dav/wdcal/", "caledit"); $ret = wdcal_postEditPage("new", "", $a->user["uid"], $a->timezone, $a->get_baseurl() . "/dav/wdcal/"); if ($ret["ok"]) notice($ret["msg"]); else info($ret["msg"]); @@ -177,7 +177,7 @@ function dav_content() if (isset($a->argv[4]) && $a->argv[4] == "edit") { $o = ""; if (isset($_REQUEST["save"])) { - check_form_security_token_redirectOnErr($a->get_baseurl() . "/dav/wdcal/", "caledit"); + check_form_security_token_redirectOnErr("/dav/wdcal/", "caledit"); $ret = wdcal_postEditPage($a->argv[3], $a->user["uid"], $a->timezone, $a->get_baseurl() . "/dav/wdcal/"); if ($ret["ok"]) notice($ret["msg"]); else info($ret["msg"]); -- 2.39.5