Skip to content

Commit f8aba90

Browse files
Merge pull request #4429 from FengZh61/Missing-characters-when-exporting-pdf
fix missing characters when exporting pdf
2 parents ef80d12 + 746a26a commit f8aba90

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

sources/export.queries.php

+7-7
Original file line numberDiff line numberDiff line change
@@ -632,20 +632,20 @@
632632
if ($prev_path !== $record['path']) {
633633
$html_table .= '
634634
<tr>
635-
<td colspan="6">'.$record['path'].'</td>
635+
<td colspan="6">'.htmlspecialchars($record['path']).'</td>
636636
</tr>';
637637
}
638638
$prev_path = $record['path'];
639639

640640
// build
641641
$html_table .= '
642642
<tr>
643-
<td>'.$record['label'].'</td>
644-
<td>'.$record['login'].'</td>
645-
<td>'.$record['pw'].'</td>
646-
<td>'.$record['url'].'</td>
647-
<td>'.$record['description'].'</td>
648-
<td>'.$record['email'].'</td>
643+
<td>'.htmlspecialchars($record['label']).'</td>
644+
<td>'.htmlspecialchars($record['login']).'</td>
645+
<td>'.htmlspecialchars($record['pw']).'</td>
646+
<td>'.htmlspecialchars($record['url']).'</td>
647+
<td>'.htmlspecialchars($record['description']).'</td>
648+
<td>'.htmlspecialchars($record['email']).'</td>
649649
</tr>';
650650
}
651651
$html_table .= '

0 commit comments

Comments
 (0)