From 54e931ebe3a334eabdabbc63378499f15a6a3e4e Mon Sep 17 00:00:00 2001 From: Colin Kuskie Date: Tue, 1 May 2007 20:44:30 +0000 Subject: [PATCH] fix for autogenerated wiki links not obeying gateway settings --- lib/WebGUI/Asset/Wobject/WikiMaster.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/WebGUI/Asset/Wobject/WikiMaster.pm b/lib/WebGUI/Asset/Wobject/WikiMaster.pm index 385fcd1ee..8960820e8 100644 --- a/lib/WebGUI/Asset/Wobject/WikiMaster.pm +++ b/lib/WebGUI/Asset/Wobject/WikiMaster.pm @@ -92,7 +92,7 @@ sub autolinkHtml { my %mapping = $self->session->db->buildHash("SELECT LOWER(d.title), d.url FROM asset AS i INNER JOIN assetData AS d ON i.assetId = d.assetId WHERE i.parentId = ? and className='WebGUI::Asset::WikiPage'", [$self->getId]); return $html unless %mapping; foreach my $key (keys %mapping) { - $mapping{$key} = WebGUI::HTML::format('/'.$mapping{$key}, 'text'); + $mapping{$key} = $self->session->url->gateway(WebGUI::HTML::format('/'.$mapping{$key}, 'text')); } my $matchString = join('|', map{quotemeta} keys %mapping); my $regexp = qr/\b($matchString)\b/i;