From b397796f970c7ed006f62dd0d542de35ed055f77 Mon Sep 17 00:00:00 2001 From: Phil Davis Date: Wed, 22 Nov 2023 21:59:00 +0545 Subject: [PATCH] fix: restore autoPrefix property of Href (#1514) use of this property in code was removed in PR https://github.com/sabre-io/dav/pull/801 But the property is left here because old data may still exist that has this property saved. See discussion in https://github.com/sabre-io/Baikal/issues/1154 --- lib/DAV/Xml/Property/Href.php | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/lib/DAV/Xml/Property/Href.php b/lib/DAV/Xml/Property/Href.php index 898a4e2328..f736be6c21 100644 --- a/lib/DAV/Xml/Property/Href.php +++ b/lib/DAV/Xml/Property/Href.php @@ -34,6 +34,19 @@ class Href implements Element, HtmlOutput */ protected $hrefs; + /** + * Automatically prefix the url with the server base directory. + * Note: use of this property in code was removed in PR: + * https://github.com/sabre-io/dav/pull/801 + * But the property is left here because old data may still exist + * that has this property saved. + * See discussion in issue: + * https://github.com/sabre-io/Baikal/issues/1154. + * + * @var bool + */ + protected $autoPrefix = true; + /** * Constructor. *