mirror of
https://github.com/badaix/snapcast.git
synced 2025-04-28 17:57:05 +02:00
Reformat code
This commit is contained in:
parent
9254be1a8f
commit
61bda79158
1 changed files with 2 additions and 2 deletions
|
@ -693,9 +693,9 @@ void StreamAddRequest::execute(const jsonrpcpp::request_ptr& request, AuthInfo&
|
||||||
// Don't allow adding a process stream: CVE-2023-36177
|
// Don't allow adding a process stream: CVE-2023-36177
|
||||||
const std::string streamUri = request->params().get("streamUri");
|
const std::string streamUri = request->params().get("streamUri");
|
||||||
const StreamUri parsedUri(streamUri);
|
const StreamUri parsedUri(streamUri);
|
||||||
if(parsedUri.scheme == "process")
|
if (parsedUri.scheme == "process")
|
||||||
throw jsonrpcpp::InvalidParamsException("Adding process streams is not allowed", request->id());
|
throw jsonrpcpp::InvalidParamsException("Adding process streams is not allowed", request->id());
|
||||||
|
|
||||||
// Don't allow settings the controlscript streamUri property
|
// Don't allow settings the controlscript streamUri property
|
||||||
if (!parsedUri.getQuery("controlscript").empty())
|
if (!parsedUri.getQuery("controlscript").empty())
|
||||||
throw jsonrpcpp::InvalidParamsException("No controlscript streamUri property allowed", request->id());
|
throw jsonrpcpp::InvalidParamsException("No controlscript streamUri property allowed", request->id());
|
||||||
|
|
Loading…
Add table
Reference in a new issue