Actions
Feature #15079
closedRemove spaces from filenames generated by status.php
Status:
Rejected
Priority:
Normal
Assignee:
-
Category:
Diagnostics
Target version:
-
Start date:
Due date:
% Done:
0%
Estimated time:
Plus Target Version:
Release Notes:
Default
Description
This eases filename expansion on the command line, and simplifies iterating over the files with commands or scripts. It also makes the filenames consistent. For instance current version has:
status_cmd_define("DHCP-IPv4 Configuration", '/usr/bin/sed "s/\([[:blank:]]secret \).*/\1<redacted>/" /var/dhcpd/etc/dhcpd.conf'); status_cmd_define("DHCP-IPv6-Configuration", '/usr/bin/sed "s/\([[:blank:]]secret \).*/\1<redacted>/" /var/dhcpd/etc/dhcpdv6.conf');
This requires one edit to /usr/local/pfSense/include/www/status_output.inc:
- $descr .= "-Last {$number} entries"; + $descr .= "-Last-{$number}-entries";
I have attached the updated status.php from master, as well as a diff. So it should be ready to go. Tested on 23.09.1-RELEASE.
Files
Actions