mirror of
https://github.com/elyby/oauth2-server.git
synced 2026-12-02 04:03:25 +05:30
Fixed tests, allow whitespace at the end of a key
This commit is contained in:
1 parent
2ec8d148b0
commit
91d9c11fb4
2 files changed
+9
-7
No files matched your search
+1
-1
@@ -14,7 +14,7 @@ namespace League\OAuth2\Server;
|
||||
class CryptKey
|
||||
{
|
||||
const RSA_KEY_PATTERN =
|
||||
'/^(-----BEGIN (RSA )?(PUBLIC|PRIVATE) KEY-----).+(-----END (RSA )?(PUBLIC|PRIVATE) KEY-----)$/s';
|
||||
'/^(-----BEGIN (RSA )?(PUBLIC|PRIVATE) KEY-----).+(-----END (RSA )?(PUBLIC|PRIVATE) KEY-----)\s*$/s';
|
||||
|
||||
/**
|
||||
* @var string
|
||||
|
||||
Reference in new issue
Block a user