remove strict check on OMB exception strings

This commit is contained in:
Evan Prodromou 2010-03-01 15:39:41 -05:00
parent 9b4ee90704
commit baee6dac9e
2 changed files with 4 additions and 4 deletions

View File

@ -76,8 +76,8 @@ class PostnoticeAction extends Action
$srv->handlePostNotice();
} catch (OMB_RemoteServiceException $rse) {
$msg = $rse->getMessage();
if (preg_match('/^Revoked accesstoken/', $msg) ||
preg_match('/^No subscriber/', $msg)) {
if (preg_match('/Revoked accesstoken/', $msg) ||
preg_match('/No subscriber/', $msg)) {
$this->clientError($msg, 403);
} else {
$this->clientError($msg);

View File

@ -79,8 +79,8 @@ class UpdateprofileAction extends Action
$srv->handleUpdateProfile();
} catch (OMB_RemoteServiceException $rse) {
$msg = $rse->getMessage();
if (preg_match('/^Revoked accesstoken/', $msg) ||
preg_match('/^No subscriber/', $msg)) {
if (preg_match('/Revoked accesstoken/', $msg) ||
preg_match('/No subscriber/', $msg)) {
$this->clientError($msg, 403);
} else {
$this->clientError($msg);