Merge pull request #901 from whatdoineed2do/json-spotify-token-leak

Json spotify token leak
This commit is contained in:
Christian Meffert 2020-02-22 08:27:32 +01:00 committed by GitHub
commit 80921a71a4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -1110,7 +1110,7 @@ jsonapi_reply_spotify(struct httpd_request *hreq)
spotifywebapi_access_token_get(&webapi_token);
safe_json_add_string(jreply, "webapi_token", webapi_token.token);
json_object_object_add(jreply, "webapi_token_expires_in", json_object_new_int(webapi_token.expires_in));
free(webapi_token.token);
#else
json_object_object_add(jreply, "enabled", json_object_new_boolean(false));
#endif