Changeset 4bc66ae


Ignore:
Timestamp:
2011-06-11T17:59:39Z (13 years ago)
Author:
Wilmer van der Gaast <wilmer@…>
Branches:
master
Children:
14df98f
Parents:
c0f33f1
Message:

Oops. prefix shouldn't be just "ca" for identi.ca.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • protocols/twitter/twitter.c

    rc0f33f1 r4bc66ae  
    283283        if (g_str_has_suffix(td->prefix, ".com"))
    284284                td->prefix[strlen(url.host) - 4] = '\0';
    285         if ((s = strrchr(td->prefix, '.'))) {
     285        if ((s = strrchr(td->prefix, '.')) && strlen(s) > 4) {
     286                /* If we have at least 3 chars after the last dot, cut off the rest.
     287                   (mostly a www/api prefix or sth) */
    286288                s = g_strdup(s + 1);
    287289                g_free(td->prefix);
Note: See TracChangeset for help on using the changeset viewer.