blob: ff8d454b3c4f43c75a92c6fc9260223b5afa5bad (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
diff -up ../lib/DAV/Server.php.php74 ../lib/DAV/Server.php
--- ../lib/DAV/Server.php.php74 2019-10-11 09:25:27.807508723 +0200
+++ ../lib/DAV/Server.php 2019-10-11 09:25:30.679493668 +0200
@@ -564,7 +564,7 @@ class Server extends EventEmitter implem
*/
function calculateUri($uri) {
- if ($uri[0] != '/' && strpos($uri, '://')) {
+ if ('' != $uri && '/' != $uri[0] && strpos($uri, '://')) {
$uri = parse_url($uri, PHP_URL_PATH);
diff -up ../lib/DAV/Xml/Property/Href.php.php74 ../lib/DAV/Xml/Property/Href.php
--- ../lib/DAV/Xml/Property/Href.php.php74 2019-10-11 09:23:28.870132179 +0200
+++ ../lib/DAV/Xml/Property/Href.php 2019-10-11 09:23:45.854043154 +0200
@@ -58,7 +58,7 @@ class Href implements Element, HtmlOutpu
*/
function getHref() {
- return $this->hrefs[0];
+ return (isset($this->hrefs[0]) ? $this->hrefs[0] : null);
}
|