Commit 5e5cc3f1 authored by Xavier Guimard's avatar Xavier Guimard

Decode new notif content (#868)

parent 4178455d
......@@ -285,6 +285,11 @@ sub newNotification {
) . ">$json->{xml}</notification></root>";
}
else {
eval { my $tmp = from_json( $json->{xml} ); $json->{xml} = $tmp; };
if ($@) {
$self->lmLog( "Notification malformed $@", 'error' );
return $self->sendError( $req, "Notification malformed: $@", 200 );
}
$newNotif = to_json($json);
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment