( cvs diff -u -r 1.654.2.1597 -r 1.654.2.1598 configure.ac; ) > 2.2.1cvs1.patchset
( cvs diff -u -r 1.52.2.19 -r 1.52.2.20 src/prefs_folder_item.c; cvs diff -u -r 1.207.2.100 -r 1.207.2.101 src/folderview.c; cvs diff -u -r 1.75.2.23 -r 1.75.2.24 src/matcher.c; ) > 2.2.1cvs2.patchset
( cvs diff -u -r 1.1.2.4 -r 1.1.2.5 manual/fr/account.xml; ) > 2.2.1cvs3.patchset
+( cvs diff -u -r 1.96.2.114 -r 1.96.2.115 src/textview.c; cvs diff -u -r 1.36.2.63 -r 1.36.2.64 src/common/utils.c; ) > 2.2.1cvs4.patchset
gboolean is_uri_string(const gchar *str)
{
+ while (str && *str && g_ascii_isspace(*str))
+ str++;
return (g_ascii_strncasecmp(str, "http://", 7) == 0 ||
g_ascii_strncasecmp(str, "https://", 8) == 0 ||
g_ascii_strncasecmp(str, "ftp://", 6) == 0 ||
gchar *get_uri_path(const gchar *uri)
{
+ while (uri && *uri && g_ascii_isspace(*uri))
+ uri++;
if (g_ascii_strncasecmp(uri, "http://", 7) == 0)
return (gchar *)(uri + 7);
else if (g_ascii_strncasecmp(uri, "https://", 8) == 0)
gchar *make_uri_string(const gchar *bp, const gchar *ep)
{
+ while (bp && *bp && g_ascii_isspace(*bp))
+ bp++;
return g_strndup(bp, ep - bp);
}
gchar *tmp;
gchar *result;
+ while (bp && *bp && g_ascii_isspace(*bp))
+ bp++;
tmp = g_strndup(bp, ep - bp);
result = g_strconcat("http://", tmp, NULL);
g_free(tmp);
/* ALF - the sylpheed html parser returns an empty string,
* if still inside an <a>, but already parsed past HREF */
str = strtok(str, " ");
- if (str) {
+ if (str) {
+ while (str && *str && g_ascii_isspace(*str))
+ str++;
parser->href = g_strdup(str);
/* the URL may (or not) be followed by the
* referenced text */
if (!uri)
return;
+ while (uri && *uri && g_ascii_isspace(*uri))
+ uri++;
+
text = GTK_TEXT_VIEW(textview->text);
buffer = gtk_text_view_get_buffer(text);
gtk_text_buffer_get_end_iter(buffer, &iter);