Fix for bug #3 reported on github "double-quoting of non-latin 'All servers' message...
authorGuillaume (ioguix) de Rorthais <ioguix@free.fr>
Tue, 16 Nov 2010 22:42:18 +0000 (23:42 +0100)
committerGuillaume (ioguix) de Rorthais <ioguix@free.fr>
Tue, 16 Nov 2010 22:42:18 +0000 (23:42 +0100)
  see https://github.com/xzilla/phppgadmin/issues#issue/3

servers.php

index 83de22a46e786ec391fa1b8c0a69ec2024ad27dc..2b6ea300e0ad5c313affacc99ae55525dfb7ac94 100644 (file)
                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(