From 7575dd82ce5d0b4503c747cb9e1808e0aedeb375 Mon Sep 17 00:00:00 2001 From: Koushik Dutta Date: Sun, 26 Feb 2023 16:52:32 -0800 Subject: [PATCH] onvif: unescape xml strings --- plugins/onvif/package-lock.json | 4 ++-- plugins/onvif/package.json | 2 +- plugins/onvif/src/main.ts | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/plugins/onvif/package-lock.json b/plugins/onvif/package-lock.json index 6eada7776b..178764d75c 100644 --- a/plugins/onvif/package-lock.json +++ b/plugins/onvif/package-lock.json @@ -1,12 +1,12 @@ { "name": "@scrypted/onvif", - "version": "0.0.111", + "version": "0.0.112", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "@scrypted/onvif", - "version": "0.0.111", + "version": "0.0.112", "license": "Apache", "dependencies": { "@koush/axios-digest-auth": "^0.8.5", diff --git a/plugins/onvif/package.json b/plugins/onvif/package.json index 2e79a3f33b..0aad746112 100644 --- a/plugins/onvif/package.json +++ b/plugins/onvif/package.json @@ -1,6 +1,6 @@ { "name": "@scrypted/onvif", - "version": "0.0.111", + "version": "0.0.112", "description": "ONVIF Camera Plugin for Scrypted", "author": "Scrypted", "license": "Apache", diff --git a/plugins/onvif/src/main.ts b/plugins/onvif/src/main.ts index 6da4748581..a897651d09 100644 --- a/plugins/onvif/src/main.ts +++ b/plugins/onvif/src/main.ts @@ -464,7 +464,7 @@ class OnvifProvider extends RtspProvider implements DeviceDiscovery { for (const scope of splitScopes) { for (const known of Object.keys(knownScopes)) { if (scope.startsWith(known)) { - knownScopes[known] = scope.substring(known.length); + knownScopes[known] = decodeURIComponent(scope.substring(known.length)); } } }