mirror of
https://github.com/RSS-Bridge/rss-bridge.git
synced 2025-07-28 20:30:25 +02:00
core: Don't use server variables in CLI mode (#939)
This commit is contained in:
@@ -77,7 +77,7 @@ function buildBridgeException($e, $bridge){
|
||||
$body = 'Error message: `'
|
||||
. $e->getMessage()
|
||||
. "`\nQuery string: `"
|
||||
. $_SERVER['QUERY_STRING']
|
||||
. (isset($_SERVER['QUERY_STRING']) ? $_SERVER['QUERY_STRING'] : '')
|
||||
. "`\nVersion: `"
|
||||
. Configuration::getVersion()
|
||||
. '`';
|
||||
@@ -116,7 +116,8 @@ function buildTransformException($e, $bridge){
|
||||
$body = 'Error message: `'
|
||||
. $e->getMessage()
|
||||
. "`\nQuery string: `"
|
||||
. $_SERVER['QUERY_STRING'] . '`';
|
||||
. (isset($_SERVER['QUERY_STRING']) ? $_SERVER['QUERY_STRING'] : '')
|
||||
. '`';
|
||||
|
||||
$link = buildGitHubIssueQuery($title, $body, 'bug report', $bridge->getMaintainer());
|
||||
$header = buildHeader($e, $bridge);
|
||||
|
Reference in New Issue
Block a user