summaryrefslogtreecommitdiff
path: root/actions
diff options
context:
space:
mode:
authorEvan Prodromou <evan@status.net>2010-03-01 15:39:41 -0500
committerEvan Prodromou <evan@status.net>2010-03-01 15:39:41 -0500
commitbaee6dac9e75601cf4a49885b69e8e28c623c86f (patch)
treee6fc0edb3add92e25bebe8eb16ce12c7bba1bedd /actions
parent9b4ee9070467eb5df02b350e2e3d01a2c2497836 (diff)
remove strict check on OMB exception strings
Diffstat (limited to 'actions')
-rw-r--r--actions/postnotice.php4
-rw-r--r--actions/updateprofile.php4
2 files changed, 4 insertions, 4 deletions
diff --git a/actions/postnotice.php b/actions/postnotice.php
index ad3f00e34..b2f6f1bb9 100644
--- a/actions/postnotice.php
+++ b/actions/postnotice.php
@@ -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);
diff --git a/actions/updateprofile.php b/actions/updateprofile.php
index 44fafdd92..bae6108cc 100644
--- a/actions/updateprofile.php
+++ b/actions/updateprofile.php
@@ -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);