Skip to content

Commit

Permalink
DTDL component name is now HTML encoded in SendMessage (#264)
Browse files Browse the repository at this point in the history
***NO_CI***
  • Loading branch information
josesimoes authored Nov 23, 2022
1 parent 3595d78 commit ed01470
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nanoFramework.Azure.Devices.Client/DeviceClient.cs
Original file line number Diff line number Diff line change
Expand Up @@ -391,7 +391,7 @@ public bool SendMessage(string message, CancellationToken cancellationToken = de

if (!string.IsNullOrEmpty(dtdlComponentname))
{
topic += $"$.sub={dtdlComponentname}";
topic += $"$.sub={HttpUtility.UrlEncode(dtdlComponentname)}";
}

var rid = _mqttc.Publish(
Expand Down

0 comments on commit ed01470

Please sign in to comment.