summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--content/hlcache.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/content/hlcache.c b/content/hlcache.c
index 84f391aed..d839b500c 100644
--- a/content/hlcache.c
+++ b/content/hlcache.c
@@ -107,6 +107,7 @@ nserror hlcache_handle_retrieve(const char *url, uint32_t flags,
{
hlcache_retrieval_ctx *ctx;
nserror error;
+ char *hash;
assert(cb != NULL);
@@ -138,6 +139,10 @@ nserror hlcache_handle_retrieve(const char *url, uint32_t flags,
ctx->handle->cb = cb;
ctx->handle->pw = pw;
+ /* strip fragment identifier */
+ if ((hash = strchr(url, '#')) != NULL)
+ *hash = 0;
+
error = llcache_handle_retrieve(url, flags, referer, post,
hlcache_llcache_callback, ctx,
&ctx->llcache);