[Freeswitch-svn] [commit] r10041 - freeswitch/trunk/scripts/socket/FreeSWITCH
Freeswitch SVN
brian at freeswitch.org
Wed Oct 15 20:23:47 EDT 2008
Author: brian
Date: Wed Oct 15 20:23:46 2008
New Revision: 10041
Modified:
freeswitch/trunk/scripts/socket/FreeSWITCH/Client.pm
Log:
tweak FreeSWITCH::Client to not delete keys that are already lowercase ie. variables in the events
Modified: freeswitch/trunk/scripts/socket/FreeSWITCH/Client.pm
==============================================================================
--- freeswitch/trunk/scripts/socket/FreeSWITCH/Client.pm (original)
+++ freeswitch/trunk/scripts/socket/FreeSWITCH/Client.pm Wed Oct 15 20:23:46 2008
@@ -195,8 +195,11 @@
foreach (keys %h) {
my $new = lc $_;
- $h{$new} = $h{$_};
- delete $h{$_};
+ if (!($new eq $_)) {
+ # do not delete keys that were already lowercase
+ $h{$new} = $h{$_};
+ delete $h{$_};
+ }
}
foreach(keys %h) {
htdecode(\$h{$_});
More information about the Freeswitch-svn
mailing list