diff options
author | Alan Fitton <ajf@eth0.org.uk> | 2011-10-03 18:58:20 +0000 |
---|---|---|
committer | Alan Fitton <ajf@eth0.org.uk> | 2011-10-03 18:58:20 +0000 |
commit | 9d7104735ae1d56d5ef7b7bd82c2ab41c509b569 (patch) | |
tree | 6a6fd54d2c013d44b60aec9ccfcbec3687fa083d /src/util.c | |
parent | 258a0a450fc822068dc7581b03590a29f93b903f (diff) |
Diffstat (limited to 'src/util.c')
-rw-r--r-- | src/util.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -41,7 +41,7 @@ gboolean is_magnet(gchar *string) gboolean is_url(gchar *string) { //return g_regex_match_simple ("^(([^:/?#]+):)?(//([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?", string, 0, 0); - return g_regex_match_simple ("^http", string, 0, 0); + return g_regex_match_simple ("^http[s]?://", string, 0, 0); } void add_file_id_to_array(JsonObject * args, gchar * key, gint index) |