Page MenuHomePhabricator

b45019.patch

Authored By
bzimport
Nov 22 2014, 1:28 AM
Size
953 B
Referenced Files
None
Subscribers
None

b45019.patch

From e10e4d005f18c908788afc5fc1e0ca5dce6a4eb9 Mon Sep 17 00:00:00 2001
From: Krenair <krenair@gmail.com>
Date: Wed, 20 Mar 2013 19:04:05 +0000
Subject: [PATCH] (bug 45019) Require token for CheckUser API module
---
api/ApiQueryCheckUser.php | 12 ++++++++++++
1 file changed, 12 insertions(+)
diff --git a/api/ApiQueryCheckUser.php b/api/ApiQueryCheckUser.php
index 276d9f5..99ea444 100644
--- a/api/ApiQueryCheckUser.php
+++ b/api/ApiQueryCheckUser.php
@@ -234,6 +234,10 @@ public function getAllowedParams() {
ApiBase::PARAM_DFLT => '-2 weeks'
),
'xff' => null,
+ 'token' => array(
+ ApiBase::PARAM_TYPE => 'string',
+ ApiBase::PARAM_REQUIRED => true,
+ ),
);
}
@@ -283,4 +287,12 @@ public function getHelpUrls() {
public function getVersion() {
return __CLASS__ . ': $Id$';
}
+
+ public function getTokenSalt() {
+ return '';
+ }
+
+ public function needsToken() {
+ return true;
+ }
}
--
1.8.1.2

File Metadata

Mime Type
text/x-diff
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
10113
Default Alt Text
b45019.patch (953 B)

Event Timeline