Skip to content

Commit 9bd83a9

Browse files
committed
Merge branch 'master' of https://github.com/Program-O/Program-O
2 parents 0a5f7c2 + dc6bff2 commit 9bd83a9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

admin/search.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ function runSearch() {
109109
$topic = $row['topic'];
110110
$pattern = $row['pattern'];
111111
$thatpattern = $row['thatpattern'];
112-
$template = htmlentities($row['template']);
112+
$template = htmlentities($row['template'],ENT_COMPAT,'UTF-8');
113113
$filename = $row['filename'];
114114
$id = $row['id'];
115115
$action = <<<endLink
@@ -163,7 +163,7 @@ function editAIMLForm($id) {
163163
$topic = $row['topic'];
164164
$pattern = $row['pattern'];
165165
$thatpattern = $row['thatpattern'];
166-
$row_template = htmlentities($row['template']);
166+
$row_template = htmlentities($row['template'],ENT_COMPAT,'UTF-8');
167167
$filename = $row['filename'];
168168
$id = $row['id'];
169169
$form = $template->getSection('EditAIMLForm');

0 commit comments

Comments
 (0)