From d6c63d8d87296848551edcfe989bb4db7958d470 Mon Sep 17 00:00:00 2001 From: Jan Schneider Date: Mon, 16 Nov 2009 16:15:24 +0100 Subject: [PATCH] Fix signature checking of ListTasks request. --- kronolith/ajax.php | 1 + kronolith/js/kronolith.js | 7 ++++--- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/kronolith/ajax.php b/kronolith/ajax.php index 5754212c7..b003776cf 100644 --- a/kronolith/ajax.php +++ b/kronolith/ajax.php @@ -142,6 +142,7 @@ try { $result = new stdClass; $result->list = $tasklist; $result->type = $tasktype; + $result->sig = Horde_Util::getFormData('sig'); if (count($tasks)) { $result->tasks = $tasks; } diff --git a/kronolith/js/kronolith.js b/kronolith/js/kronolith.js index 9342c0570..0ad8dc05c 100644 --- a/kronolith/js/kronolith.js +++ b/kronolith/js/kronolith.js @@ -1507,10 +1507,11 @@ KronolithCore = { if (Object.isUndefined(this.tcache.get(type)) || Object.isUndefined(this.tcache.get(type).get(list))) { loading = true; - this.startLoading('tasks:' + list, type, ''); + this.startLoading('tasks:' + type + list, tasktype, ''); this._storeTasksCache($H(), type, list); this.doAction('ListTasks', { 'type': type, + 'sig' : tasktype, 'list': list }, function(r) { this._loadTasksCallback(r, tasktype); @@ -1543,7 +1544,7 @@ KronolithCore = { // Check if this is the still the result of the most current request. if (this.view != 'tasks' || - this.eventsLoading['tasks:' + r.response.list] != r.response.type) { + this.eventsLoading['tasks:' + r.response.type + r.response.list] != r.response.sig) { return; } this._insertTasks(tasktype, r.response.list); @@ -1708,7 +1709,7 @@ KronolithCore = { }, /** - * Toggles the CSS class to show that a tasks is completed/uncompleted. + * Toggles the CSS class to show that a task is completed/uncompleted. * * @param string taskid The id of the task. */ -- 2.11.0