From 5e8af902b476819fcf0d67db39b9ff4e81120161 Mon Sep 17 00:00:00 2001 From: Irina Peshinskaya Date: Mon, 13 Mar 2017 16:53:55 +0200 Subject: [PATCH] TT#7515 Remove xml symbols from the generated sip passwords To avoid XML errors in the xml device configs Change-Id: I9450ce193735a2a4d597b47815da9d08a54b55b1 --- lib/NGCP/Panel/Utils/Subscriber.pm | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/NGCP/Panel/Utils/Subscriber.pm b/lib/NGCP/Panel/Utils/Subscriber.pm index 890ee1b762..dc589aabdd 100644 --- a/lib/NGCP/Panel/Utils/Subscriber.pm +++ b/lib/NGCP/Panel/Utils/Subscriber.pm @@ -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(