Encode package size as well
[misc/hallinta-metro] / utils.php
index 5bd6ce4..b54e4dd 100644 (file)
--- a/utils.php
+++ b/utils.php
@@ -167,7 +167,7 @@ function ordersatz_write($id, $dir, $send)
     fwrite($f, sprintf('\order{%d}{%s}{%s %s}{%s}'."\n",
                       $row['anzahl'],
                       $row['artnr'] ? (int)$row['artnr'] : '',
-                      $row['menge'],
+                      latex_encode($row['menge']),
                       $bez,
                       latex_encode($row['vpname'])));
   }