Fix encoding problem with htmlspecialcharacters
authorJoey Schulze <joey@infodrom.org>
Mon, 4 Aug 2014 18:18:54 +0000 (18:18 +0000)
committerJoey Schulze <joey@infodrom.org>
Mon, 4 Aug 2014 18:18:54 +0000 (18:18 +0000)
src/InfoCon/stempel/index.wml
src/InfoCon/stempel/status.wml

index 0ab3996..8303c2a 100644 (file)
@@ -67,7 +67,7 @@
     $sum += $row['time'];
     $d = explode(' ', $row['start']);
  
-    printf($table_row, $color, $d[0], min2hour($row['time']), $row['kurz'], $row['oid'], htmlspecialchars($row['task']));
+    printf($table_row, $color, $d[0], min2hour($row['time']), $row['kurz'], $row['oid'], htmlspecialchars($row['task'], ENT_COMPAT | ENT_HTML401, 'ISO-8859-1'));
     $color = !$color;
   }
   printf($table_sum, $color, min2hour($sum));
index 8398dc2..d067f8a 100644 (file)
@@ -99,7 +99,7 @@
                       $row['oid'],
                       $form);
       $date = sprintf('<span onclick="toggle_checkbox(%d,this)">%s</span>', $form, $d[0]);
-      printf($table_row, $color, $check.$date, $form, min2hour($row['time']), $form, $row['kurz'], htmlspecialchars($row['task']));
+      printf($table_row, $color, $check.$date, $form, min2hour($row['time']), $form, $row['kurz'], htmlspecialchars($row['task'], ENT_COMPAT | ENT_HTML401, 'ISO-8859-1'));
       $color = !$color;
     }
     if (pg_num_rows($sth) > 0) {