kopia lustrzana https://github.com/nextcloud/social
Merge pull request #1136 from mnd/support-unquoted-signature
Support unquoted fields in Signature headerpull/1150/head
commit
c9afc0c104
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Ładowanie…
Reference in New Issue