From 9151a295e5c4be9dc7ee46d7094b9366b1055682 Mon Sep 17 00:00:00 2001 From: Frederic Guillot Date: Thu, 13 Jun 2013 21:40:08 -0400 Subject: [PATCH] Replace an old urlencode by encode_item_id() --- index.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.php b/index.php index a44c778..c625b77 100644 --- a/index.php +++ b/index.php @@ -162,7 +162,7 @@ Router\post_action('change-item-status', function() { $id = Model\decode_item_id(Request\param('id')); Response\json(array( - 'item_id' => urlencode($id), + 'item_id' => Model\encode_item_id($id), 'status' => Model\switch_item_status($id) )); });