From 74366487174080a36628ce83d1f808c8994275d2 Mon Sep 17 00:00:00 2001 From: Jens-Heiner Rechtien Date: Fri, 8 Apr 2005 15:18:16 +0000 Subject: INTEGRATION: CWS hc680stoppers (1.5.18); FILE MERGED 2005/04/07 10:18:13 fpe 1.5.18.1: #i46823# --- helpcontent2/helpers/update_tree.pl | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/helpcontent2/helpers/update_tree.pl b/helpcontent2/helpers/update_tree.pl index 3a24dbd706..8a18a5326a 100644 --- a/helpcontent2/helpers/update_tree.pl +++ b/helpcontent2/helpers/update_tree.pl @@ -262,6 +262,8 @@ sub read_loc { $file =~ s/.*text\\/text\\/g; #convert \ to / in filename $file =~ s/\\/\//g; + #fpe: i46823 - need to encode &s, added encoding + $text =~ s/&(?!amp;)/&/g; # add entry to the hash $loc_title{$lang}->{$file} = $text; } @@ -273,12 +275,16 @@ sub read_loc { if ($text =~ /^ my ($fld1,$app,$fld3,$id,$fld5,$sec_title) = split('"', $text, 7); + #fpe: i46823 - need to encode &s, added encoding + $sec_title =~ s/&(?!amp;)/&/g; $helpsection{$lang}->{$id} = $sec_title; } elsif ($text =~/ # BEWARE: title may contain escaped '"' so only match " not preceded by \ # using a zero‐width negative look‐behind assertion. my ($fld1,$id,$fld3,$node_title,$Fld5) = split(/(?{$id} = $node_title; } } -- cgit