aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/ecore_file/ecore_file_download.c
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/lib/ecore_file/ecore_file_download.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/lib/ecore_file/ecore_file_download.c b/src/lib/ecore_file/ecore_file_download.c
index 3ed475a9fb..406d6cabc9 100644
--- a/src/lib/ecore_file/ecore_file_download.c
+++ b/src/lib/ecore_file/ecore_file_download.c
@@ -194,6 +194,12 @@ ecore_file_download_full(const char *url,
return EINA_FALSE;
}
+ if (!strstr(url, "://"))
+ {
+ ERR("'%s' is not an URL, missing protocol://", url);
+ return EINA_FALSE;
+ }
+
dir = ecore_file_dir_get(dst);
if (!ecore_file_is_dir(dir))
{