rygel r28 - in trunk: . src
- From: zeeshanak svn gnome org
- To: svn-commits-list gnome org
- Subject: rygel r28 - in trunk: . src
- Date: Tue, 28 Oct 2008 20:58:38 +0000 (UTC)
Author: zeeshanak
Date: Tue Oct 28 20:58:38 2008
New Revision: 28
URL: http://svn.gnome.org/viewvc/rygel?rev=28&view=rev
Log:
Escape the path before making a URI from it.
Modified:
trunk/ChangeLog
trunk/src/gupnp-media-tracker.c
Modified: trunk/src/gupnp-media-tracker.c
==============================================================================
--- trunk/src/gupnp-media-tracker.c (original)
+++ trunk/src/gupnp-media-tracker.c Tue Oct 28 20:58:38 2008
@@ -419,6 +419,7 @@
const char *path)
{
GUPnPDIDLLiteResource res;
+ char *escaped_path;
gupnp_didl_lite_writer_start_item (didl_writer,
id,
@@ -450,12 +451,16 @@
/* Add resource data */
gupnp_didl_lite_resource_reset (&res);
+ escaped_path = g_uri_escape_string (path,
+ NULL,
+ TRUE);
/* URI */
res.uri = g_strdup_printf ("http://%s:%d%s%s",
gupnp_context_get_host_ip (context),
gupnp_context_get_port (context),
ROOT_DIR_ALIAS,
- path);
+ escaped_path);
+ g_free (escaped_path);
/* Protocol info */
res.protocol_info = g_strdup_printf ("http-get:*:%s:*", mime);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]