TT#7515 Remove xml symbols from the generated sip passwords

To avoid XML errors in the xml device configs

Change-Id: I9450ce193735a2a4d597b47815da9d08a54b55b1
changes/82/11982/12
Irina Peshinskaya 9 years ago
parent a4a0d311e4
commit 5e8af902b4

@ -206,6 +206,8 @@ sub create_subscriber {
-minnum => 1, -minlower => 1, -minupper => 1, -minspecial => 1,
-distribute => 1, -fatal => 1,
);
#otherwise it breaks xml device configs
$params->{password} =~s/[<>&]/,/g;
}
if($c->config->{security}->{password_web_autogenerate} && !$params->{webpassword}) {
$params->{webpassword} = String::MkPasswd::mkpasswd(

Loading…
Cancel
Save