Resolve backend Qodana critical and high findings (#314)
Resolve recommended-profile Critical and High findings, retain narrow analyzer exceptions, and update the edge-broker WebSocket dependency to a non-vulnerable release.
This commit is contained in:
@@ -51,7 +51,6 @@ class moduleWeatherAPIRoute
|
||||
$user = (new authentication())->get_user();
|
||||
if (!$user) {
|
||||
$response->error('Invalid session', 400);
|
||||
return;
|
||||
}
|
||||
|
||||
self::requireParameters(['q']);
|
||||
@@ -69,7 +68,6 @@ class moduleWeatherAPIRoute
|
||||
$user = (new authentication())->get_user();
|
||||
if (!$user) {
|
||||
$response->error('Invalid session', 400);
|
||||
return;
|
||||
}
|
||||
|
||||
self::requireParameters(['q']);
|
||||
@@ -88,7 +86,6 @@ class moduleWeatherAPIRoute
|
||||
$user = (new authentication())->get_user();
|
||||
if (!$user) {
|
||||
$response->error('Invalid session', 400);
|
||||
return;
|
||||
}
|
||||
|
||||
self::requireParameters(['q']);
|
||||
@@ -106,7 +103,6 @@ class moduleWeatherAPIRoute
|
||||
$user = (new authentication())->get_user();
|
||||
if (!$user) {
|
||||
$response->error('Invalid session', 400);
|
||||
return;
|
||||
}
|
||||
|
||||
$department_ids = self::parseDepartmentIdsFromRequest();
|
||||
@@ -163,7 +159,6 @@ class moduleWeatherAPIRoute
|
||||
$user = (new authentication())->get_user();
|
||||
if (!$user) {
|
||||
$response->error('Invalid session', 400);
|
||||
return;
|
||||
}
|
||||
|
||||
$department_ids = self::parseDepartmentIdsFromRequest();
|
||||
@@ -199,7 +194,6 @@ class moduleWeatherAPIRoute
|
||||
$user = (new authentication())->get_user();
|
||||
if (!$user) {
|
||||
$response->error('Invalid session', 400);
|
||||
return;
|
||||
}
|
||||
|
||||
$department_ids = self::parseDepartmentIdsFromRequest();
|
||||
@@ -230,7 +224,6 @@ class moduleWeatherAPIRoute
|
||||
$user = (new authentication())->get_user();
|
||||
if (!$user) {
|
||||
$response->error('Invalid session', 400);
|
||||
return;
|
||||
}
|
||||
|
||||
self::requireParameters(['department_id', 'degraded_threshold', 'healthy_threshold']);
|
||||
|
||||
Reference in New Issue
Block a user