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
Replace strlen() calls with strict string comparisons
[lhc/web/wiklou.git]
/
includes
/
api
/
ApiQuerySiteinfo.php
diff --git
a/includes/api/ApiQuerySiteinfo.php
b/includes/api/ApiQuerySiteinfo.php
index
96fa8a1
..
82a52b4
100644
(file)
--- a/
includes/api/ApiQuerySiteinfo.php
+++ b/
includes/api/ApiQuerySiteinfo.php
@@
-664,8
+664,8
@@
class ApiQuerySiteinfo extends ApiQueryBase {
}
$data = [
- 'url' =>
strlen( $url ) ? $url : ''
,
- 'text' =>
strlen( $text ) ? $text : ''
,
+ 'url' =>
(string)$url
,
+ 'text' =>
(string)$text
,
];
return $this->getResult()->addValue( 'query', $property, $data );