Commit e0b2eb85 authored by Lucian Langa's avatar Lucian Langa Committed by Lucian Langa
Browse files

- extra sanitize input string (imported feed might not have http like

2009-03-29  Lucian Langa  <lucilanga@gnome.org>

* src/misc.c: (sanitize_url) - extra sanitize input string (imported
feed might not have http like construct.Ingore case on comparison.

svn path=/trunk/; revision=485
parent b07e7d9a
2009-03-29 Lucian Langa <lucilanga@gnome.org>
* src/misc.c: (sanitize_url) - extra sanitize input string (imported
feed might not have http like construct.Ingore case on comparison.
2009-03-28 Lucian Langa <lucilanga@gnome.org>
* src/rss.c: (create_user_pass_dialog) - reshape user/password dialog
......
......@@ -58,5 +58,9 @@
* check webbuttons for webkit
* cancel operation should cancel fetching feed components
* see whether we need to allow higher ttl update interval
* fetch_image() handle 404
* count comments
* fetch_image() handle 404 <-
* count comments |
* perhaps make quoted text fancier |
* if immage cannto be server from cache try to fetch it ---|
* disable filters on setup_feed()
* allow interval of minutes configurable by days/years
......@@ -71,15 +71,20 @@ sanitize_url(gchar *text)
{
gchar *out;
gchar *tmptext = g_strdup(text);
if (strstr(text, "feed://"))
if (strcasestr(text, "feed://"))
tmptext = strextr(text, "feed://");
else if (strstr(text, "feed//"))
else if (strcasestr(text, "feed//"))
tmptext = strextr(text, "feed//");
else if (strstr(text, "feed:"))
else if (strcasestr(text, "feed:"))
tmptext = strextr(text, "feed:");
if (!strcasestr(tmptext, "http://") && !strcasestr(tmptext, "https://")) {
gchar *safetext = g_strconcat("http://", tmptext, NULL);
g_free(tmptext);
tmptext=safetext;
}
gchar *scheme = g_uri_parse_scheme(tmptext);
g_print("parsed scheme:%s\n", scheme);
d(g_print("parsed scheme:%s\n", scheme));
if (!scheme && !strstr (tmptext, "http://")
&& !strstr (tmptext, "https://")) {
//out = g_strconcat("http://", tmptext, NULL);
......
Supports Markdown
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