[evolution-rss] validate img url before fetching
- From: Lucian Langa <lucilanga src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [evolution-rss] validate img url before fetching
- Date: Tue, 29 Sep 2009 20:41:01 +0000 (UTC)
commit d979c812e12b2a314b99d3a3328e6ef2c258e01d
Author: Lucian Langa <lucilanga gnome org>
Date: Tue Sep 29 23:38:57 2009 +0300
validate img url before fetching
src/rss.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/rss.c b/src/rss.c
index a18fa64..d2d9546 100644
--- a/src/rss.c
+++ b/src/rss.c
@@ -2374,7 +2374,7 @@ void org_gnome_cooly_format_rss(void *ep, EMFormatHookTarget *t) //camelmimepart
while ((doc = html_find(doc, "img"))) {
int real_width = 0;
xmlChar *url = xmlGetProp(doc, (xmlChar *)"src");
- if (!g_file_test(url, G_FILE_TEST_EXISTS)) {
+ if (!g_file_test(url, G_FILE_TEST_EXISTS) && url) {
camel_url_decode((char *)url);
//FIXME lame method of extracting data cache path
//there must be a function in camel for getting data cache path
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]