[gupnp] [PATCH] Add missing quote in action response
- From: Sven Neumann <s neumann raumfeld com>
- To: gupnp o-hand com
- Cc: Sven Neumann <s neumann raumfeld com>
- Subject: [gupnp] [PATCH] Add missing quote in action response
- Date: Thu, 17 Feb 2011 17:57:57 +0100
The action response document was missing an opening quote
sign in the namespace declaration of the <actionResponse>
element.
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.
---
libgupnp/gupnp-service.c | 5 ++---
1 files changed, 2 insertions(+), 3 deletions(-)
diff --git a/libgupnp/gupnp-service.c b/libgupnp/gupnp-service.c
index ee0c5a1..5dffeeb 100644
--- a/libgupnp/gupnp-service.c
+++ b/libgupnp/gupnp-service.c
@@ -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 "
"correctly.");
}
- g_string_append_c (str, '>');
+ g_string_append (str, "\">");
return str;
}
--
1.7.1
--
To unsubscribe send a mail to gupnp+unsubscribe\@o-hand.com
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]