Browse Source

Ensure HTML will not be displayed in list log page

Anton Reutov 4 năm trước cách đây
mục cha
commit
d0a21b4859
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      web/templates/admin/list_log.html

+ 1 - 1
web/templates/admin/list_log.html

@@ -53,7 +53,7 @@
         <!-- /.l-unit__col -->
         <div class="l-unit__col l-unit__col--right">
           <div class="l-unit__name small">
-            <?=$data[$key]['CMD']?>
+          <?=htmlspecialchars($data[$key]['CMD'], ENT_QUOTES)?>
           </div>
 
           <!-- div class="l-unit__stats">