Skip to content
Snippets Groups Projects
Commit 5f3669a6 authored by Stefan Wallström's avatar Stefan Wallström
Browse files

HTML-entities shouldn't be present in hrefs added to linkfarms. Fixes [Bug 4280]

Rev: lib/modules/Search.pmod/Filter.pmod/HTML.pmod:1.41
parent 6ede46c0
No related branches found
No related tags found
No related merge requests found
// This file is part of Roxen Search // This file is part of Roxen Search
// Copyright 2000,2001 Roxen IS. All rights reserved. // Copyright 2000,2001 Roxen IS. All rights reserved.
// //
// $Id: HTML.pmod,v 1.40 2006/10/24 09:55:28 stewa Exp $ // $Id: HTML.pmod,v 1.41 2006/11/17 10:41:41 stewa Exp $
// Filter for text/html // Filter for text/html
...@@ -127,7 +127,12 @@ static string clean(string data) { ...@@ -127,7 +127,12 @@ static string clean(string data) {
}; };
_WhiteFish.LinkFarm lf = _WhiteFish.LinkFarm(); _WhiteFish.LinkFarm lf = _WhiteFish.LinkFarm();
function ladd = lf->add; function low_ladd = lf->add;
void ladd(string html_href)
{
low_ladd(Parser.parse_html_entities(html_href, 1));
};
array(string) parse_title(Parser.HTML p, mapping m, string c) { array(string) parse_title(Parser.HTML p, mapping m, string c) {
res->fields->title = clean(c); res->fields->title = clean(c);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment