http://www.mediawiki.org/wiki/Special:Code/MediaWiki/94292
Revision: 94292
Author: neilk
Date: 2011-08-11 22:27:02 +0000 (Thu, 11 Aug 2011)
Log Message:
-----------
make xsrf less likely
Modified Paths:
--------------
branches/extensions-realtime/IdentityApi/api/ApiQueryIdentity.php
Modified: branches/extensions-realtime/IdentityApi/api/ApiQueryIdentity.php
===================================================================
--- branches/extensions-realtime/IdentityApi/api/ApiQueryIdentity.php
2011-08-11 22:00:42 UTC (rev 94291)
+++ branches/extensions-realtime/IdentityApi/api/ApiQueryIdentity.php
2011-08-11 22:27:02 UTC (rev 94292)
@@ -32,17 +32,12 @@
}
- /**
- * ???? do we need this? XSRF? TODO
- * Indicates whether this module must be called with a POST request
- * @return bool
- */
public function mustBePosted() {
- return false;
+ return true;
}
/**
- * Probably needed to avoid XSRF -- TODO
+ * May be needed to avoid XSRF -- TODO determine if this is needed
* Returns whether this module requires a Token to execute
* @return bool
*/
_______________________________________________
MediaWiki-CVS mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs