| 168 p_uri = g_strdup(uri); |
168 p_uri = g_strdup(uri); |
| 169 found = strchr(p_uri, '/'); |
169 found = strchr(p_uri, '/'); |
| 170 if (!found) { |
170 if (!found) { |
| 171 purple_debug_warning("webview", "Invalid purple stock " |
171 purple_debug_warning("webview", "Invalid purple stock " |
| 172 "image uri: %s", uri); |
172 "image uri: %s", uri); |
| |
173 g_free(p_uri); |
| 173 return; |
174 return; |
| 174 } |
175 } |
| 175 |
176 |
| 176 found[0] = '\0'; |
177 found[0] = '\0'; |
| 177 domain = p_uri; |
178 domain = p_uri; |
| 178 stock_name = found + 1; |
179 stock_name = found + 1; |
| 179 |
180 |
| 180 if (g_strcmp0(domain, "e2ee") == 0) { |
181 if (g_strcmp0(domain, "e2ee") == 0) { |
| 181 img = _pidgin_e2ee_stock_icon_get(stock_name); |
182 img = _pidgin_e2ee_stock_icon_get(stock_name); |
| 182 if (!img) |
183 if (!img) { |
| |
184 g_free(p_uri); |
| 183 return; |
185 return; |
| |
186 } |
| 184 } else { |
187 } else { |
| 185 purple_debug_warning("webview", "Invalid purple stock " |
188 purple_debug_warning("webview", "Invalid purple stock " |
| 186 "image domain: %s", domain); |
189 "image domain: %s", domain); |
| |
190 |
| |
191 g_free(p_uri); |
| 187 return; |
192 return; |
| 188 } |
193 } |
| 189 } else |
194 } else |
| 190 return; |
195 return; |
| 191 |
196 |