]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
remove strict check on OMB exception strings
authorEvan Prodromou <evan@status.net>
Mon, 1 Mar 2010 20:39:41 +0000 (15:39 -0500)
committerEvan Prodromou <evan@status.net>
Mon, 1 Mar 2010 23:03:18 +0000 (18:03 -0500)
actions/postnotice.php
actions/updateprofile.php

index ad3f00e349f8f86e549c286cca9cf3543ca6465d..b2f6f1bb95debe9a57e441bbdc07a96c8a37447e 100644 (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);
index 44fafdd92605ccbdf78c5f3477934c5401ac708e..bae6108cced4e0647982e4b579705ff48ba938c1 100644 (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);