kopia lustrzana https://github.com/nextcloud/social
Support unquoted fields in Signature header
Signed-off-by: Nikolai Merinov <nikolai.merinov@member.fsf.org>pull/1136/head
rodzic
2bbc2b7aac
commit
7e5b4b2881
|
@ -468,8 +468,9 @@ class SignatureService {
|
|||
|
||||
list($k, $v) = explode('=', $entry, 2);
|
||||
preg_match('/"([^"]+)"/', $v, $varr);
|
||||
if ($varr[0] !== null) {
|
||||
$v = trim($varr[0], '"');
|
||||
|
||||
}
|
||||
$sign[$k] = $v;
|
||||
}
|
||||
|
||||
|
|
Ładowanie…
Reference in New Issue