forked from Mirrors/freeswitch
FS-8871: Fixed encoding "&" and "<" symbols in vanilla config
This commit is contained in:
parent
46599c5a8b
commit
4827e22114
|
@ -1,5 +1,5 @@
|
|||
<configuration name="abstraction.conf" description="Abstraction">
|
||||
<apis>
|
||||
<api name="user_name" description="Return Name for extension" syntax="<exten>" parse="(.*)" destination="user_data" argument="$1@default var effective_caller_id_name"/>
|
||||
<api name="user_name" description="Return Name for extension" syntax="<exten>" parse="(.*)" destination="user_data" argument="$1@default var effective_caller_id_name"/>
|
||||
</apis>
|
||||
</configuration>
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
<configuration name="cidlookup.conf" description="cidlookup Configuration">
|
||||
<settings>
|
||||
<!-- comment out url to not setup a url based lookup -->
|
||||
<param name="url" value="http://query.voipcnam.com/query.php?api_key=MYAPIKEY&number=${caller_id_number}"/>
|
||||
<param name="url" value="http://query.voipcnam.com/query.php?api_key=MYAPIKEY&number=${caller_id_number}"/>
|
||||
|
||||
<!-- comment out whitepages-apikey to not use whitepages.com, you must
|
||||
get an API key from http://developer.whitepages.com/ -->
|
||||
|
|
File diff suppressed because it is too large
Load Diff
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue