projects
/
misc
/
hallinta-metro
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
6ca04de
)
Apply latex_encode on each element of item cell
author
Joey Schulze
<joey@infodrom.org>
Wed, 26 Dec 2012 23:11:05 +0000
(
00:11
+0100)
committer
Joey Schulze
<joey@infodrom.org>
Wed, 26 Dec 2012 23:11:05 +0000
(
00:11
+0100)
utils.php
patch
|
blob
|
history
diff --git
a/utils.php
b/utils.php
index
f998ced
..
78292c6
100644
(file)
--- a/
utils.php
+++ b/
utils.php
@@
-158,17
+158,17
@@
function ordersatz_write($id, $dir, $send)
$f = fopen(FNAME_ITEMS, 'w');
foreach ($result as $row) {
$f = fopen(FNAME_ITEMS, 'w');
foreach ($result as $row) {
- $bez =
$row['bezeichnung']
;
+ $bez =
latex_encode($row['bezeichnung'])
;
if (strlen($row['hersteller']))
if (strlen($row['hersteller']))
- $bez .= ' (' .
$row['hersteller']
. ')';
+ $bez .= ' (' .
latex_encode($row['hersteller'])
. ')';
if (strlen($row['hinweis']))
if (strlen($row['hinweis']))
- $bez .= sprintf("\\newline\\textbf{%s}",
$row['hinweis']
);
+ $bez .= sprintf("\\newline\\textbf{%s}",
latex_encode($row['hinweis'])
);
fwrite($f, sprintf('\order{%d}{%s}{%s %s}{%s}'."\n",
$row['anzahl'],
$row['artnr'] ? (int)$row['artnr'] : '',
$row['menge'],
fwrite($f, sprintf('\order{%d}{%s}{%s %s}{%s}'."\n",
$row['anzahl'],
$row['artnr'] ? (int)$row['artnr'] : '',
$row['menge'],
-
latex_encode($bez)
,
+
$bez
,
latex_encode($row['vpname'])));
}
latex_encode($row['vpname'])));
}