diff options
author | Daniel Friesel <derf@finalrewind.org> | 2013-12-03 15:39:45 +0100 |
---|---|---|
committer | Daniel Friesel <derf@finalrewind.org> | 2013-12-03 15:40:23 +0100 |
commit | 23a2aa5be6f97b4cf8bd2f5c7dad3def8ce970ef (patch) | |
tree | 13a9d8bfb4365888a21887611686f2b5c6c095bc /src/imlib.c | |
parent | 865a78510ff53db952ec5de98c934b60bfc664c8 (diff) |
pass (potentially URL-encoded) file:// URLs to curl
This means it will be treated like an HTTP image (no write operations,
copying to /tmp etc), but it's still better than no file:// support.
Also, this is why it's not documented yet.
Diffstat (limited to 'src/imlib.c')
-rw-r--r-- | src/imlib.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/imlib.c b/src/imlib.c index 2047c63..36de346 100644 --- a/src/imlib.c +++ b/src/imlib.c @@ -243,8 +243,10 @@ int feh_load_image(Imlib_Image * im, feh_file * file) return 0; /* Handle URLs */ - if ((!strncmp(file->filename, "http://", 7)) || (!strncmp(file->filename, "https://", 8)) - || (!strncmp(file->filename, "ftp://", 6))) { + if ((!strncmp(file->filename, "http://", 7)) + || (!strncmp(file->filename, "https://", 8)) + || (!strncmp(file->filename, "ftp://", 6)) + || (!strncmp(file->filename, "file://", 7))) { image_source = SRC_HTTP; if ((tmpname = feh_http_load_image(file->filename)) == NULL) |