aboutsummaryrefslogtreecommitdiffstats
path: root/config/suricata/suricata_sid_mgmt.php
diff options
context:
space:
mode:
authorbmeeks8 <bmeeks8@bellsouth.net>2014-10-03 22:40:17 -0400
committerbmeeks8 <bmeeks8@bellsouth.net>2014-12-15 12:04:39 -0500
commitb1f3a863bdb6fbfc252c542a81f567b070282b1e (patch)
treee52a6aacccc675cb02ce91fc1400530d10d6f185 /config/suricata/suricata_sid_mgmt.php
parent23933b62da3f2f0cf3c3cd3cca815a3ee31cc748 (diff)
downloadpfsense-packages-b1f3a863bdb6fbfc252c542a81f567b070282b1e.tar.gz
pfsense-packages-b1f3a863bdb6fbfc252c542a81f567b070282b1e.tar.bz2
pfsense-packages-b1f3a863bdb6fbfc252c542a81f567b070282b1e.zip
Replace exec() calls with PHP native functions where possible.
Diffstat (limited to 'config/suricata/suricata_sid_mgmt.php')
-rw-r--r--config/suricata/suricata_sid_mgmt.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/config/suricata/suricata_sid_mgmt.php b/config/suricata/suricata_sid_mgmt.php
index adcf677a..2ad2fa5a 100644
--- a/config/suricata/suricata_sid_mgmt.php
+++ b/config/suricata/suricata_sid_mgmt.php
@@ -216,7 +216,7 @@ if (isset($_POST['sidlist_dnload']) && isset($_POST['sidlist_fname'])) {
}
if (isset($_POST['sidlist_dnload_all_x'])) {
- $save_date = exec('/bin/date "+%Y-%m-%d-%H-%M-%S"');
+ $save_date = date("Y-m-d-H-i-s");
$file_name = "suricata_sid_conf_files_{$save_date}.tar.gz";
exec("cd {$sidmods_path} && /usr/bin/tar -czf /tmp/{$file_name} *");