comparison libpurple/util.c @ 17037:cc9242ce1435

Patch #756 from EvilSporkMan. Use Datallah's url handling for Dbus
author Sean Egan <seanegan@gmail.com>
date Tue, 15 May 2007 01:06:02 +0000
parents 0be41b604566
children d8102e923bd1
comparison
equal deleted inserted replaced
17036:74f1f5bbd858 17037:cc9242ce1435
3100 /* If there is no explicit value */ 3100 /* If there is no explicit value */
3101 if (keyend == NULL) 3101 if (keyend == NULL)
3102 keyend = tmp; 3102 keyend = tmp;
3103 3103
3104 if (keyend && keyend != pairstart) { 3104 if (keyend && keyend != pairstart) {
3105 char *p;
3105 key = g_strndup(pairstart, (keyend - pairstart)); 3106 key = g_strndup(pairstart, (keyend - pairstart));
3106 /* If there is an explicit value */ 3107 /* If there is an explicit value */
3107 if (keyend != tmp && keyend != (tmp - 1)) 3108 if (keyend != tmp && keyend != (tmp - 1))
3108 value = g_strndup(keyend + 1, (tmp - keyend - 1)); 3109 value = g_strndup(keyend + 1, (tmp - keyend - 1));
3110 for (p = key; *p; ++p)
3111 *p = g_ascii_tolower(*p);
3109 g_hash_table_insert(params, key, value); 3112 g_hash_table_insert(params, key, value);
3110 } 3113 }
3111 keyend = value = NULL; 3114 keyend = value = NULL;
3112 pairstart = (*tmp) ? tmp + 1 : tmp; 3115 pairstart = (*tmp) ? tmp + 1 : tmp;
3113 } else if (*tmp == '=') 3116 } else if (*tmp == '=')