dépôts
/
lhc
/
web
/
wiklou.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Merge "Use the WebRequest::getCheck() shortcut where possible"
[lhc/web/wiklou.git]
/
includes
/
api
/
ApiMain.php
diff --git
a/includes/api/ApiMain.php
b/includes/api/ApiMain.php
index
295d5d0
..
261e4a4
100644
(file)
--- a/
includes/api/ApiMain.php
+++ b/
includes/api/ApiMain.php
@@
-321,7
+321,7
@@
class ApiMain extends ApiBase {
$request = $this->getRequest();
// JSONP mode
- if ( $request->get
Val( 'callback' ) !== null
) {
+ if ( $request->get
Check( 'callback' )
) {
$this->lacksSameOriginSecurity = true;
return true;
}