FS-8871: Fixed encoding "&" and "<" symbols in vanilla config

This commit is contained in:
Sergey Safarov
2016-02-25 13:32:13 +03:00
parent 46599c5a8b
commit 4827e22114
4 changed files with 303 additions and 334 deletions

View File

@@ -2,6 +2,9 @@
use strict;
use Getopt::Long;
use XML::Entities;
use HTML::Entities;
my $base = "/usr/share/zoneinfo";
my $output = "timezones.conf.xml";
@@ -70,7 +73,7 @@ print $out " " x 4, "<timezones>\n";
my $lastprefix = "";
foreach my $zone ( sort( keys(%zones) ) ) {
my $str = $zones{$zone};
my $str = encode_entities($zones{$zone});
next if ( !$str );
my $newprefix = $zone;