From 973faa1a8362362d0049025a9b2e405e2fb29b82 Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Tue, 20 Aug 2019 14:48:03 +0200 Subject: add patch for 7.4 from https://github.com/sabre-io/http/pull/121 --- php-sabre-http5-php74.patch | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 php-sabre-http5-php74.patch (limited to 'php-sabre-http5-php74.patch') 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') { -- cgit