From 987fba72b004322175c4566d45a13a0c2fd14ac2 Mon Sep 17 00:00:00 2001 From: "Guillaume (ioguix) de Rorthais" Date: Tue, 16 Nov 2010 23:42:18 +0100 Subject: [PATCH] Fix for bug #3 reported on github "double-quoting of non-latin 'All servers' message fix" see https://github.com/xzilla/phppgadmin/issues#issue/3 --- servers.php | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/servers.php b/servers.php index 83de22a4..2b6ea300 100644 --- a/servers.php +++ b/servers.php @@ -132,9 +132,17 @@ global $misc; $groups = $misc->getServersGroups(); - + + function escape($fields) { + global $lang; + if ($fields['id'] === 'all') { + return $lang['strallservers']; + } + else return value(field('desc'), $fields, 'xml'); + } + $attrs = array( - 'text' => field('desc'), + 'text' => noEscape(callback('escape')), 'icon' => 'Servers', 'action' => url('servers.php', array( -- 2.39.5