Commit 1ff7bd81 authored by Sven Neumann's avatar Sven Neumann Committed by Ross Burton
Browse files

Add missing quote in action response

The action response document was missing an opening quote
sign in the namespace declaration of the <actionResponse>

Fix it by adding the missing quote and also tweak the code
a bit to output well-formed XML in case that the service-type
is not set.
parent 48fca1e0
......@@ -797,17 +797,16 @@ new_action_response_str (const char *action_name,
g_string_append (str, "<u:");
g_string_append (str, action_name);
g_string_append (str, "Response xmlns:u=");
g_string_append (str, "Response xmlns:u=\"");
if (service_type != NULL) {
g_string_append (str, service_type);
g_string_append_c (str, '"');
} else {
g_warning ("No serviceType defined. Control may not work "
g_string_append_c (str, '>');
g_string_append (str, "\">");
return str;
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment