13
0

WebSockets: also json-escape paths in manifests

Extends 3c423d9
This commit is contained in:
Luciano Iam 2020-04-22 13:17:57 +02:00 committed by Robin Gareus
parent 742adad310
commit 946094b25c
Signed by: rgareus
GPG Key ID: A090BCE02CF57F04

View File

@ -76,7 +76,7 @@ SurfaceManifest::to_json ()
std::stringstream ss;
ss << "{"
<< "\"path\":\"" << Glib::path_get_basename (_path) << "\""
<< "\"path\":\"" << ServerResources::escape_json (Glib::path_get_basename (_path)) << "\""
<< ",\"name\":\"" << ServerResources::escape_json (_name) << "\""
<< ",\"description\":\"" << ServerResources::escape_json (_description) << "\""
<< ",\"version\":\"" << ServerResources::escape_json (_version) << "\""