From 927831bc5a1ac6369910858c10fcf362ab1eb22e Mon Sep 17 00:00:00 2001 From: Marc Delisle Date: Sat, 29 Dec 2012 08:20:29 -0500 Subject: [PATCH] bug #3598736 [routines] Editing a procedure with special characters --- ChangeLog | 1 + libraries/rte/rte_routines.lib.php | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 2420e0b978..ad9e8b49c6 100644 --- a/ChangeLog +++ b/ChangeLog @@ -4,6 +4,7 @@ phpMyAdmin - ChangeLog 3.5.6.0 (not yet released) - bug #3593604 [status] Erroneous advisor rule - bug #3596070 [status] localStorage broken in server status monitor +- bug #3598736 [routines] Editing a procedure with special characters 3.5.5.0 (2012-12-21) - bug #3563824 [export] Support Apache's mod_deflate diff --git a/libraries/rte/rte_routines.lib.php b/libraries/rte/rte_routines.lib.php index 414cbc2d70..9b02db2523 100644 --- a/libraries/rte/rte_routines.lib.php +++ b/libraries/rte/rte_routines.lib.php @@ -770,7 +770,7 @@ function PMA_RTN_getEditorForm($mode, $operation, $routine) 'item_comment' ); foreach ($need_escape as $key => $index) { - $routine[$index] = htmlentities($routine[$index], ENT_QUOTES); + $routine[$index] = htmlentities($routine[$index], ENT_QUOTES, 'UTF-8'); } for ($i=0; $i<$routine['item_num_params']; $i++) { $routine['item_param_name'][$i] = htmlentities(