From 3abdc4ea0aaa7895c5ad08560648dd000263bbfc Mon Sep 17 00:00:00 2001 From: Pliable Pixels Date: Thu, 30 Apr 2020 08:59:52 -0400 Subject: #933 remove spaces, removed encodeURIComponent, add back encodeURI in cordova http --- www/js/MontageCtrl.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'www/js/MontageCtrl.js') diff --git a/www/js/MontageCtrl.js b/www/js/MontageCtrl.js index f6d5967a..518a2687 100644 --- a/www/js/MontageCtrl.js +++ b/www/js/MontageCtrl.js @@ -583,18 +583,18 @@ angular.module('zmApp.controllers') // https:///zm/api/events/index/MonitorId=:2.json?sort=StartTime&direction=desc&limit=1 var apiurl = ld.apiurl +'/events/index'; // we need some interval or it errors - apiurl += "/"+encodeURIComponent("MonitorId =:") + monitor.Monitor.Id; + apiurl += "/"+"MonitorId=:" + monitor.Monitor.Id; if (monitor.Monitor.Id in ld.lastEventCheckTimes) { // now is server TZ time var now = ld.lastEventCheckTimes[monitor.Monitor.Id]; - apiurl += "/StartTime >:" + now; + apiurl += "/StartTime>:" + now; } - apiurl += "/"+encodeURIComponent("AlarmFrames >=:") + (ld.enableAlarmCount ? ld.minAlarmCount : 0); + apiurl += "/"+"AlarmFrames>=:" + (ld.enableAlarmCount ? ld.minAlarmCount : 0); if (ld.objectDetectionFilter) { - apiurl +='/'+encodeURIComponent('Notes REGEXP:detected:'); + apiurl +='/'+'Notes REGEXP:detected:'; } /*if ( !(monitor.Monitor.Id in ld.lastEventCheckTimes)) { -- cgit v1.2.3