소스 검색

xss protection

Serghey Rodin 12 년 전
부모
커밋
4082765c65
2개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 1 1
      web/templates/admin/list_cron.html
  2. 1 1
      web/templates/user/list_cron.html

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

@@ -81,7 +81,7 @@
                         <table class="data-col2" width="800px">
                         <table class="data-col2" width="800px">
                             <tr>
                             <tr>
                                 <td colspan=5 class="cron" style="padding: 0 0 0 4px;">
                                 <td colspan=5 class="cron" style="padding: 0 0 0 4px;">
-                                    <b><?php echo $data[$key]['CMD'] ?></b>
+                                    <b><?php echo htmlspecialchars($data[$key]['CMD'], ENT_NOQUOTES) ?></b>
                                 </td>
                                 </td>
                             </tr>
                             </tr>
                             <tr>
                             <tr>

+ 1 - 1
web/templates/user/list_cron.html

@@ -67,7 +67,7 @@
                         <table class="data-col2" width="800px">
                         <table class="data-col2" width="800px">
                             <tr>
                             <tr>
                                 <td colspan=5 class="cron" style="padding: 0 0 0 4px;">
                                 <td colspan=5 class="cron" style="padding: 0 0 0 4px;">
-                                    <b><?php echo $data[$key]['CMD'] ?></b>
+                                    <b><?php echo htmlspecialchars($data[$key]['CMD'], ENT_NOQUOTES) ?></b>
                                 </td>
                                 </td>
                             </tr>
                             </tr>
                             <tr>
                             <tr>