Skip to content
Snippets Groups Projects
Commit 16b82e0d authored by Henrik (Grubba) Grubbström's avatar Henrik (Grubba) Grubbström
Browse files

Merge branch 'patches/bug10020' into 8.0

* patches/bug10020:
  Search.Filter.HTML: Return the first <title>.
parents ba586aa0 bc35275b
Branches
Tags
No related merge requests found
......@@ -160,6 +160,7 @@ void parse_http_header(string header, string value, .Output res)
array(string) parse_title(Parser.HTML p, mapping m, string c, mapping e) {
if (e->noindex)
return ({ });
if (!res->fields->title)
res->fields->title = clean(c);
return ({c});
};
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment