Skip to content

Commit 3e20494

Browse files
ddb4githubJing Chen
andauthored
Fixed: JS error during load importing page (#127)
Co-authored-by: Jing Chen <three_chenjing@sohu.com>
1 parent 5899507 commit 3e20494

3 files changed

Lines changed: 3 additions & 9 deletions

File tree

syslog_alerts.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -849,9 +849,7 @@ function import() {
849849
)
850850
);
851851

852-
?>
853-
<form method='post' action='syslog_alerts.php' enctype='multipart/form-data'>
854-
<?php
852+
form_start('syslog_alerts.php', '', true);
855853

856854
html_start_box(__('Import Alert Rule', 'syslog'), '100%', false, '3', 'center', '');
857855

syslog_removal.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -758,9 +758,7 @@ function import() {
758758
)
759759
);
760760

761-
?>
762-
<form method='post' action='syslog_removal.php' enctype='multipart/form-data'>
763-
<?php
761+
form_start('syslog_removal.php', '', true);
764762

765763
html_start_box(__('Import Removal Rule', 'syslog'), '100%', false, '3', 'center', '');
766764

syslog_reports.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -741,9 +741,7 @@ function import() {
741741
)
742742
);
743743

744-
?>
745-
<form method='post' action='syslog_reports.php' enctype='multipart/form-data'>
746-
<?php
744+
form_start('syslog_reports.php', '', true);
747745

748746
html_start_box(__('Import Report Data', 'syslog'), '100%', false, '3', 'center', '');
749747

0 commit comments

Comments
 (0)