We are no longer offering accounts on this server. Consider https://gitlab.freedesktop.org/ as a place to host projects.

Commit baee6dac authored by Evan Prodromou's avatar Evan Prodromou

remove strict check on OMB exception strings

parent 9b4ee907
...@@ -76,8 +76,8 @@ class PostnoticeAction extends Action ...@@ -76,8 +76,8 @@ class PostnoticeAction extends Action
$srv->handlePostNotice(); $srv->handlePostNotice();
} catch (OMB_RemoteServiceException $rse) { } catch (OMB_RemoteServiceException $rse) {
$msg = $rse->getMessage(); $msg = $rse->getMessage();
if (preg_match('/^Revoked accesstoken/', $msg) || if (preg_match('/Revoked accesstoken/', $msg) ||
preg_match('/^No subscriber/', $msg)) { preg_match('/No subscriber/', $msg)) {
$this->clientError($msg, 403); $this->clientError($msg, 403);
} else { } else {
$this->clientError($msg); $this->clientError($msg);
......
...@@ -79,8 +79,8 @@ class UpdateprofileAction extends Action ...@@ -79,8 +79,8 @@ class UpdateprofileAction extends Action
$srv->handleUpdateProfile(); $srv->handleUpdateProfile();
} catch (OMB_RemoteServiceException $rse) { } catch (OMB_RemoteServiceException $rse) {
$msg = $rse->getMessage(); $msg = $rse->getMessage();
if (preg_match('/^Revoked accesstoken/', $msg) || if (preg_match('/Revoked accesstoken/', $msg) ||
preg_match('/^No subscriber/', $msg)) { preg_match('/No subscriber/', $msg)) {
$this->clientError($msg, 403); $this->clientError($msg, 403);
} else { } else {
$this->clientError($msg); $this->clientError($msg);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment