Trim deviceId to remove extra spaces

merge-requests/1/head
Sameera Wickramasekara 7 years ago
parent 273cb989d4
commit 6b4f3d0373

@ -21,7 +21,7 @@ function onRequest(context) {
var devices = context.unit.params.devices;
var deviceType = context.uriParams.deviceType;
var deviceId = request.getParameter("deviceId");
var deviceId = request.getParameter("deviceId").trim();
if (devices) {
return {
@ -41,4 +41,4 @@ function onRequest(context) {
exit();
}
}
}
}

Loading…
Cancel
Save