summaryrefslogtreecommitdiff
path: root/framebuffer/fb_findfile.c
diff options
context:
space:
mode:
authorVincent Sanders <vince@netsurf-browser.org>2009-02-12 14:16:40 +0000
committerVincent Sanders <vince@netsurf-browser.org>2009-02-12 14:16:40 +0000
commit614de7d473b10710cb96d17e76c23a8ec7236b91 (patch)
tree940d69395a0edd49f33158a88f68743933b0d68c /framebuffer/fb_findfile.c
parent06ec51993ddf4e66feaf18464cbe8daaf8624e26 (diff)
downloadnetsurf-614de7d473b10710cb96d17e76c23a8ec7236b91.tar.gz
netsurf-614de7d473b10710cb96d17e76c23a8ec7236b91.tar.bz2
Fix window clipping and introduce concept of "root" framebuffer window to allow for navigation and status bars
svn path=/trunk/netsurf/; revision=6456
Diffstat (limited to 'framebuffer/fb_findfile.c')
-rw-r--r--framebuffer/fb_findfile.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/framebuffer/fb_findfile.c b/framebuffer/fb_findfile.c
index 87e6d6f7e..2e0397e15 100644
--- a/framebuffer/fb_findfile.c
+++ b/framebuffer/fb_findfile.c
@@ -67,7 +67,12 @@ char *
fb_findfile_asurl(const char *filename)
{
static char buffer[PATH_MAX];
- char *f = fb_findfile(filename);
+ char *f;
+
+ if (strncmp(filename, "http://", 5) == 0)
+ return strdup(filename);
+
+ f = fb_findfile(filename);
if (f == NULL)
return NULL;