Page Menu
Home
DevCentral
Search
Configure Global Search
Log In
Files
F3993837
D2481.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
410 B
Referenced Files
None
Subscribers
None
D2481.diff
View Options
diff --git a/src/Service.php b/src/Service.php
--- a/src/Service.php
+++ b/src/Service.php
@@ -98,6 +98,8 @@
*/
private static function isAliveRequest() : bool {
return
+ array_key_exists('REQUEST_METHOD', $_SERVER)
+ &&
($_SERVER['REQUEST_METHOD'] === 'GET' || $_SERVER['REQUEST_METHOD'] === 'HEAD')
&&
static::getUri() === '/status';
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sat, Jan 11, 13:43 (1 h, 55 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2345143
Default Alt Text
D2481.diff (410 B)
Attached To
Mode
D2481: Ensure array key exists The service entry point can be used outside a web context, for example through CLI to run a MediaWiki maintenance script. As such, we can't make assertions on keys available in the $_SERVER array.
Attached
Detach File
Event Timeline
Log In to Comment