[libgdata] youtube: Ensure comment modification URIs are HTTPS
- From: Philip Withnall <pwithnall src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libgdata] youtube: Ensure comment modification URIs are HTTPS
- Date: Sat, 20 Aug 2011 16:56:54 +0000 (UTC)
commit 9e5037f2dfdf75090cb97dd9cd06efa46d7036b2
Author: Philip Withnall <philip tecnocode co uk>
Date: Sat Aug 20 17:43:24 2011 +0100
youtube: Ensure comment modification URIs are HTTPS
Videos apparently now (incorrectly) return HTTP URIs for their comment
query and modification URIs. We force them to be HTTPS so we don't leak
auth. credentials.
gdata/services/youtube/gdata-youtube-video.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/gdata/services/youtube/gdata-youtube-video.c b/gdata/services/youtube/gdata-youtube-video.c
index 4b60ebf..80a1efc 100644
--- a/gdata/services/youtube/gdata-youtube-video.c
+++ b/gdata/services/youtube/gdata-youtube-video.c
@@ -992,7 +992,7 @@ get_query_comments_uri (GDataCommentable *self)
return NULL;
}
- return g_strdup (gdata_gd_feed_link_get_uri (feed_link));
+ return _gdata_service_fix_uri_scheme (gdata_gd_feed_link_get_uri (feed_link));
}
static gchar *
@@ -1006,7 +1006,7 @@ get_insert_comment_uri (GDataCommentable *self, GDataComment *comment_)
return NULL;
}
- return g_strdup (gdata_gd_feed_link_get_uri (feed_link));
+ return _gdata_service_fix_uri_scheme (gdata_gd_feed_link_get_uri (feed_link));
}
static gboolean
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]