mirror of
https://github.com/signalwire/freeswitch.git
synced 2026-11-13 04:57:05 +00:00
FS-8871: Fixed encoding "&" and "<" symbols in vanilla config
This commit is contained in:
1 parent
46599c5a8b
commit
4827e22114
4 files changed
+303
-334
No files matched your search
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user