From 5b7f56fce7777d7e72959d7ec771b62e0832a3a8 Mon Sep 17 00:00:00 2001 From: dawnlinux Date: Wed, 2 Mar 2005 02:50:42 +0000 Subject: [PATCH] Fix the following bugs, [ 996794 ] Custom field can not be deleted. [ 1029059 ] Delete user fields [ 1154738 ] Customer fields contain UTF-8 works could not be deleted. The problem is due to, some specail characters, e.g, utf-8 chars, are url-encoded for generationg the url, but are not decoded when trying to delete them. --- addressbook/inc/class.uifields.inc.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addressbook/inc/class.uifields.inc.php b/addressbook/inc/class.uifields.inc.php index 696770bb6f..f8c8a0defb 100644 --- a/addressbook/inc/class.uifields.inc.php +++ b/addressbook/inc/class.uifields.inc.php @@ -307,7 +307,7 @@ $GLOBALS['phpgw']->common->phpgw_exit(); } - $field = $_POST['field'] ? $_POST['field'] : $_GET['field']; + $field = urldecode($_POST['field'] ? $_POST['field'] : $_GET['field']); $field_id = $_POST['field_id'] ? $_POST['field_id'] : $_GET['field_id']; $start = $_POST['start'] ? $_POST['start'] : $_GET['start']; $query = $_POST['query'] ? $_POST['query'] : $_GET['query'];