MT#10587 Always strip .cfg in device provisioning

changes/55/555/6
Andreas Granig 11 years ago
parent 3bd2b621e7
commit 143486dd7c

@ -1069,9 +1069,8 @@ sub dev_field_config :Chained('/') :PathPart('device/autoprov/config') :Args() {
my $host = $c->config->{deviceprovisioning}->{host} // $c->req->uri->host;
my $port = $c->config->{deviceprovisioning}->{port} // 1444;
if($id =~ /^[a-fA-F0-9]{12}\.cfg$/
&& $c->req->user_agent =~ /PolycomVVX/
) {
$id =~ s/\.cfg$//;
if($c->req->user_agent =~ /PolycomVVX/) {
$id =~ s/\.cfg$//;
$c->response->content_type('text/xml');
$c->response->body(

Loading…
Cancel
Save