aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/ecore_file
diff options
context:
space:
mode:
authorCedric BAIL <cedric@osg.samsung.com>2016-11-22 11:57:40 -0800
committerCedric BAIL <cedric@osg.samsung.com>2016-11-22 11:57:40 -0800
commit1b5e8fe3a29d8646486af69e092dac346c8a8db8 (patch)
tree9962432de9f20f8afecba7a3cef1155c422408b4 /src/lib/ecore_file
parentdocs: elm_menu: fill gaps in elm_menu eo file documentation (diff)
downloadefl-1b5e8fe3a29d8646486af69e092dac346c8a8db8.tar.gz
ecore_file: restore past behavior and fix ecore_file_download tests.
Diffstat (limited to 'src/lib/ecore_file')
-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))
{