From 7e422951804fe1686fcbd0f684382f952283a3d3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?St=C3=A9phane=20Dion?= Date: Sun, 3 Apr 2016 09:24:04 +0200 Subject: [PATCH] Update Evernote PHP SDK to 1.26 --- thirdparty/evernote/Evernote/Client.php | 2 +- thirdparty/evernote/packages/UserStore/UserStore_constants.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/thirdparty/evernote/Evernote/Client.php b/thirdparty/evernote/Evernote/Client.php index 861ccd1..e8044d4 100755 --- a/thirdparty/evernote/Evernote/Client.php +++ b/thirdparty/evernote/Evernote/Client.php @@ -124,7 +124,7 @@ class Store public function __construct($token, $clientClass, $storeUrl) { $this->token = $token; - if (preg_match(':A=(.+):', $token, $matches)) { + if (preg_match('/:A=([^:]+):/', $token, $matches)) { $this->userAgentId = $matches[1]; } $this->client = $this->getThriftClient($clientClass, $storeUrl); diff --git a/thirdparty/evernote/packages/UserStore/UserStore_constants.php b/thirdparty/evernote/packages/UserStore/UserStore_constants.php index 32c9527..7eae496 100755 --- a/thirdparty/evernote/packages/UserStore/UserStore_constants.php +++ b/thirdparty/evernote/packages/UserStore/UserStore_constants.php @@ -12,6 +12,6 @@ $GLOBALS['EDAM_UserStore_UserStore_CONSTANTS']['EDAM_VERSION_MAJOR'] = 1; -$GLOBALS['EDAM_UserStore_UserStore_CONSTANTS']['EDAM_VERSION_MINOR'] = 25; +$GLOBALS['EDAM_UserStore_UserStore_CONSTANTS']['EDAM_VERSION_MINOR'] = 26; ?>