Skip to content

Commit ba913ba

Browse files
committed
XSS security fix
1 parent b978e72 commit ba913ba

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

web/templates/admin/list_dns_rec.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@
7878
<td class="log" width="239px"><b><?php echo $data[$key]['RECORD'] ?></b></td>
7979
<td class="log-counter-value" width="57px"><?php echo $data[$key]['TYPE'] ?></td>
8080
<td class="log-counter-value" width="62px"><?php echo $data[$key]['PRIORITY'] ?></td>
81-
<td class="log-counter-value" ><?php echo $data[$key]['VALUE'] ?></td>
81+
<td class="log-counter-value" ><?php echo htmlspecialchars($data[$key]['VALUE'], ENT_QUOTES, 'UTF-8') ?></td>
8282
</tr>
8383
</table>
8484
</td>

web/templates/user/list_dns_rec.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@
7676
<td class="log" width="239px"><b><?php echo $data[$key]['RECORD'] ?></b></td>
7777
<td class="log-counter-value" width="57px"><?php echo $data[$key]['TYPE'] ?></td>
7878
<td class="log-counter-value" width="62px"><?php echo $data[$key]['PRIORITY'] ?></td>
79-
<td class="log-counter-value" ><?php echo $data[$key]['VALUE'] ?></td>
79+
<td class="log-counter-value" ><?php echo htmlspecialchars($data[$key]['VALUE'], ENT_QUOTES, 'UTF-8') ?></td>
8080
</tr>
8181
</table>
8282
</td>

0 commit comments

Comments
 (0)