diff options
author | Maxence Lange <maxence@artificial-owl.com> | 2020-12-02 22:30:31 -0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-12-02 22:30:31 -0100 |
commit | c9afc0c104397c871666572939a245d71a70cedc (patch) | |
tree | 12216c665114a112ee345cf1baee0e17234714be | |
parent | 45a1f2138c7a557b491d315bd7a6d7cbf3414da8 (diff) | |
parent | 7e5b4b2881a7fc3e797b13aeade2f897dc4ce3d8 (diff) |
Merge pull request #1136 from mnd/support-unquoted-signature
Support unquoted fields in Signature header
-rw-r--r-- | lib/Service/SignatureService.php | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/Service/SignatureService.php b/lib/Service/SignatureService.php index 0ffadb79..f76ab2ad 100644 --- a/lib/Service/SignatureService.php +++ b/lib/Service/SignatureService.php @@ -468,8 +468,9 @@ class SignatureService { list($k, $v) = explode('=', $entry, 2); preg_match('/"([^"]+)"/', $v, $varr); - $v = trim($varr[0], '"'); - + if ($varr[0] !== null) { + $v = trim($varr[0], '"'); + } $sign[$k] = $v; } |