summaryrefslogtreecommitdiffstats
path: root/php-sabre-http5-php74.patch
diff options
context:
space:
mode:
authorRemi Collet <remi@remirepo.net>2019-08-20 14:48:03 +0200
committerRemi Collet <remi@remirepo.net>2019-08-20 14:48:03 +0200
commit973faa1a8362362d0049025a9b2e405e2fb29b82 (patch)
tree7872563c5d5da6fc8b8308ee735a50546b149c3c /php-sabre-http5-php74.patch
parent8e5031b4583e1f9f65d6f1879f68ac6ac4273787 (diff)
add patch for 7.4 from
https://github.com/sabre-io/http/pull/121
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') {