diff options
Diffstat (limited to 'content/fetchcache.c')
-rw-r--r-- | content/fetchcache.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/content/fetchcache.c b/content/fetchcache.c index 5a371960f..8f267f70f 100644 --- a/content/fetchcache.c +++ b/content/fetchcache.c @@ -18,12 +18,18 @@ static void fetchcache_callback(fetch_msg msg, void *p, char *data, unsigned long size); -struct content * fetchcache(const char *url, char *referer, +struct content * fetchcache(const char *url0, char *referer, void (*callback)(content_msg msg, struct content *c, void *p1, void *p2, const char *error), void *p1, void *p2, unsigned long width, unsigned long height) { struct content *c; + char *url = xstrdup(url0); + char *hash = strchr(url, '#'); + + /* strip fragment identifier */ + if (hash != 0) + *hash = 0; LOG(("url %s", url)); |