diff options
author | John Mark Bell <jmb@netsurf-browser.org> | 2006-04-12 08:09:27 +0000 |
---|---|---|
committer | John Mark Bell <jmb@netsurf-browser.org> | 2006-04-12 08:09:27 +0000 |
commit | ef301b861982818e140b1f17b8ec5f71ce5b4f64 (patch) | |
tree | 903742a91a427166138502d387c84cd4e12ca7d6 /content/fetch.c | |
parent | 4ecbfb483c96ea6f994dfc0aaab6e82aec8e7aa4 (diff) | |
download | netsurf-ef301b861982818e140b1f17b8ec5f71ce5b4f64.tar.gz netsurf-ef301b861982818e140b1f17b8ec5f71ce5b4f64.tar.bz2 |
Fix URL file loading and add support for file:/// URLs to urldb
Convert file:/... to file:///... (the former isn't a valid URL)
svn path=/trunk/netsurf/; revision=2524
Diffstat (limited to 'content/fetch.c')
-rw-r--r-- | content/fetch.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/content/fetch.c b/content/fetch.c index bfbf715a0..6bcac69a6 100644 --- a/content/fetch.c +++ b/content/fetch.c @@ -1242,9 +1242,6 @@ bool fetch_process_headers(struct fetch *f) if (strncmp(f->url, "file:///", 8) == 0) url_path = curl_unescape(f->url + 7, (int) strlen(f->url) - 7); - else if (strncmp(f->url, "file:/", 6) == 0) - url_path = curl_unescape(f->url + 5, - (int) strlen(f->url) - 5); if (url_path && stat(url_path, &s) == 0) { /* file: URL and file exists */ |