Jack Phoenix has submitted this change and it was merged.
Change subject: Remove use of DatabaseBase::strencode()
......................................................................
Remove use of DatabaseBase::strencode()
Did not remove use in TopFansByStat; will fix separately.
Change-Id: Ib0429f9e99930811192f8d9dc701dd1cac35395a
---
M SystemGifts/SpecialViewSystemGift.php
1 file changed, 1 insertion(+), 1 deletion(-)
Approvals:
Jack Phoenix: Looks good to me, approved
jenkins-bot: Verified
diff --git a/SystemGifts/SpecialViewSystemGift.php
b/SystemGifts/SpecialViewSystemGift.php
index d084e9e..f52053a 100644
--- a/SystemGifts/SpecialViewSystemGift.php
+++ b/SystemGifts/SpecialViewSystemGift.php
@@ -63,7 +63,7 @@
),
array(
"sg_gift_id = {$gift['gift_id']}",
- "sg_user_name <> '" . $dbr->strencode(
$gift['user_name'] ) . "'"
+ 'sg_user_name <> ' . $dbr->addQuotes(
$gift['user_name'] )
),
__METHOD__,
array(
--
To view, visit https://gerrit.wikimedia.org/r/189308
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: merged
Gerrit-Change-Id: Ib0429f9e99930811192f8d9dc701dd1cac35395a
Gerrit-PatchSet: 2
Gerrit-Project: mediawiki/extensions/SocialProfile
Gerrit-Branch: master
Gerrit-Owner: PleaseStand <[email protected]>
Gerrit-Reviewer: Jack Phoenix <[email protected]>
Gerrit-Reviewer: PleaseStand <[email protected]>
Gerrit-Reviewer: jenkins-bot <>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits