notes on potential negative impact of utf8_decode
authorThierry Parmentelat <thierry.parmentelat@inria.fr>
Tue, 5 Apr 2016 15:36:59 +0000 (17:36 +0200)
committerThierry Parmentelat <thierry.parmentelat@inria.fr>
Tue, 5 Apr 2016 15:36:59 +0000 (17:36 +0200)
planetlab/sites/site.php
planetlab/sites/sites.php

index eb2f291..dab93ca 100644 (file)
@@ -38,7 +38,10 @@ if (empty($sites)) {
 
 $site=$sites[0];
 // var names to api return
+// Thomas Dreibholz suggested that utf8_decode could be non-needed
+// and maybe even harmful on modern systems like f23
 $sitename= htmlentities(utf8_decode($site['name']));
+// $sitename= htmlentities($site['name']);
 $abbreviated_name= htmlentities($site['abbreviated_name']);
 $site_url= $site['url'];
 $login_base= $site['login_base'];
index d4ab6b9..8eeab4f 100644 (file)
@@ -149,7 +149,10 @@ if ($sites) foreach ($sites as $site) {
     $table->cell(l_site_t($site_id,$site_id));
   }
   $peers->cell($table,$peer_id);
+  // Thomas Dreibholz suggested that utf8_decode could be non-needed
+  // and maybe even harmful on modern systems like f23
   $table->cell (l_site_t($site_id,htmlentities(utf8_decode($site['name']))));
+  // $table->cell (l_site_t($site_id,htmlentities($site['name'])));
   $table->cell (l_site_t($site_id,$login_base));
   $table->cell (htmlentities($site['abbreviated_name']));
   if (plc_is_admin()) {