jenkins-bot has submitted this change and it was merged.
Change subject: Suppress unserialize errors
......................................................................
Suppress unserialize errors
Bug: T130740
Change-Id: I20b076b7f3ce15d31a21f8935b74f9121f70c5a3
---
M OATHAuth.hooks.php
1 file changed, 2 insertions(+), 0 deletions(-)
Approvals:
BryanDavis: Looks good to me, approved
jenkins-bot: Verified
diff --git a/OATHAuth.hooks.php b/OATHAuth.hooks.php
index d500a6e..ca82423 100644
--- a/OATHAuth.hooks.php
+++ b/OATHAuth.hooks.php
@@ -186,7 +186,9 @@
);
foreach ( $res as $row ) {
+ MediaWiki\suppressWarnings();
$scratchTokens = unserialize( base64_decode(
$row->scratch_tokens ) );
+ MediaWiki\restoreWarnings();
if ( $scratchTokens ) {
$db->update(
'oathauth_users',
--
To view, visit https://gerrit.wikimedia.org/r/311201
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: merged
Gerrit-Change-Id: I20b076b7f3ce15d31a21f8935b74f9121f70c5a3
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/OATHAuth
Gerrit-Branch: master
Gerrit-Owner: Reedy <[email protected]>
Gerrit-Reviewer: BryanDavis <[email protected]>
Gerrit-Reviewer: jenkins-bot <>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits