TT#17068 Move # processing to TT

Preserve phone number string for further masking

Change-Id: I04844a3070233bd72cc3fafbe194efa9a970bc25
changes/54/14054/2
Irina Peshinskaya 9 years ago
parent cccc6a9a41
commit fd79802c3d

@ -251,7 +251,7 @@ sub create :Chained('inv_list') :PathPart('create') :Args() :Does(ACL) :ACLDetac
my $call = {$_->get_inflated_columns};
$call->{start_time} = $call->{start_time}->epoch;
$call->{destination_user_in} =~s/%23/#/g;
$call->{destination_user_in} = encode_entities($call->{destination_user_in}, '<>&"#');
#$call->{destination_user_in} = encode_entities($call->{destination_user_in}, '<>&"#');
$call->{source_customer_cost} += 0.0; # make sure it's a number
$call;
} $calllist_rs->all ];

@ -93,7 +93,7 @@
END;
IF f.masklen;
l = f.masklen > val.length ? val.length : f.masklen;
val = val.substr(l - 1, val.length - 1, f.mask);
val = val.substr(l - 1, val.length - 1, f.mask) | html_entity('<>&"#');
END;
'<text font-family="' _ fontfamily _ '" font-size="' _ fontsize _ apply_units('fontsize') _ '" x="' _ x _ apply_units('position') _ '" y="' _ y _ apply_units('position') _ '" text-anchor="'_ anc _'">';
val;

Loading…
Cancel
Save