summaryrefslogtreecommitdiffstats
path: root/php-sabre-http5-php74.patch
diff options
context:
space:
mode:
Diffstat (limited to 'php-sabre-http5-php74.patch')
-rw-r--r--php-sabre-http5-php74.patch23
1 files changed, 23 insertions, 0 deletions
diff --git a/php-sabre-http5-php74.patch b/php-sabre-http5-php74.patch
new file mode 100644
index 0000000..5e41957
--- /dev/null
+++ b/php-sabre-http5-php74.patch
@@ -0,0 +1,23 @@
+diff -up ./lib/Auth/Digest.php.up ./lib/Auth/Digest.php
+--- ./lib/Auth/Digest.php.up 2019-08-20 14:37:51.705235293 +0200
++++ ./lib/Auth/Digest.php 2019-08-20 14:38:29.371438395 +0200
+@@ -118,7 +118,7 @@ class Digest extends AbstractAuth {
+ */
+ function getUsername() {
+
+- return $this->digestParts['username'];
++ return $this->digestParts['username'] ?? null;
+
+ }
+
+@@ -127,6 +127,10 @@ class Digest extends AbstractAuth {
+ */
+ protected function validate() : bool {
+
++ if (!is_array($this->digestParts)) {
++ return false;
++ }
++
+ $A2 = $this->request->getMethod() . ':' . $this->digestParts['uri'];
+
+ if ($this->digestParts['qop'] == 'auth-int') {