From 627fa6fc9cc2a7e736fbbe66bf716209743a23e3 Mon Sep 17 00:00:00 2001 From: Nathan Gray Date: Tue, 22 Jan 2013 16:53:24 +0000 Subject: [PATCH] Encode ID to avoid problems with special chars --- importexport/inc/class.importexport_schedule_ui.inc.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/importexport/inc/class.importexport_schedule_ui.inc.php b/importexport/inc/class.importexport_schedule_ui.inc.php index ee06b56804..9f6a81d8d5 100644 --- a/importexport/inc/class.importexport_schedule_ui.inc.php +++ b/importexport/inc/class.importexport_schedule_ui.inc.php @@ -35,7 +35,7 @@ foreach($content['scheduled'] as $row) { if($row['delete']) { - $key = key($row['delete']); + $key = urldecode(key($row['delete'])); ExecMethod('phpgwapi.asyncservice.cancel_timer', $key); } } @@ -67,7 +67,7 @@ $async['data']['record_count'] = lang('%1 records processed', $async['data']['record_count']); } $data['scheduled'][] = array_merge($async['data'], array( - 'id' => $id, + 'id' => urlencode($id), 'next' => egw_time::server2user($async['next']), 'times' => str_replace("\n", '', print_r($async['times'], true)), 'last_run' => $async['data']['last_run'] ? egw_time::server2user($async['data']['last_run']) : ''