From b8a2e71bb675a6084cd33b2bcab90b4238847e5f Mon Sep 17 00:00:00 2001 From: Andrew Bauer Date: Fri, 21 Sep 2018 12:00:03 -0500 Subject: [PATCH] use base64_encode for monitor probe We need to employ the same method of encoding as the onvif probe to avoid fixing one while breaking the other --- web/skins/classic/views/monitorprobe.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/skins/classic/views/monitorprobe.php b/web/skins/classic/views/monitorprobe.php index d54b96938..1ce8f999c 100644 --- a/web/skins/classic/views/monitorprobe.php +++ b/web/skins/classic/views/monitorprobe.php @@ -288,7 +288,7 @@ function probeNetwork() { if ( isset($macBases[$macRoot]) ) { $macBase = $macBases[$macRoot]; $camera = call_user_func($macBase['probeFunc'], $ip); - $sourceDesc = htmlspecialchars(serialize($camera['monitor'])); + $sourceDesc = base64_encode(serialize($camera['monitor'])); $sourceString = $camera['model'].' @ '.$host; if ( isset($monitors[$ip]) ) { $monitor = $monitors[$ip];