src: style sweep for cp changes

This commit is contained in:
Franco Fichtner 2025-03-03 12:04:36 +01:00
parent 9a250a26f3
commit ffc5d4ae65
19 changed files with 6 additions and 4 deletions

View File

@ -130,7 +130,7 @@ function captiveportal_firewall($fw)
);
// Allow access to the captive portal
$proto = $to_port === '443' ? 'https': 'http';
$proto = $to_port === '443' ? 'https' : 'http';
$fw->registerFilterRule(
2,
[

View File

@ -299,8 +299,10 @@ class AccessController extends ApiControllerBase
*/
public function apiAction()
{
if ($this->request->isGet() &&
$this->request->getHeader("accept") == "application/captive+json") {
if (
$this->request->isGet() &&
$this->request->getHeader("accept") == "application/captive+json"
) {
$result = [];
$zoneId = $this->request->getHeader("zoneid");
$clientSession = $this->clientSession($zoneId);

View File

@ -240,7 +240,7 @@ class Plugin
$result .= " quick";
}
if (!empty($anchor['ifs'])) {
$ifs = array_filter(array_map(function($if) {
$ifs = array_filter(array_map(function ($if) {
return $this->interfaceMapping[$if]['if'] ?? null;
}, explode(',', $anchor['ifs'])));

View File

View File

Before

Width:  |  Height:  |  Size: 106 KiB

After

Width:  |  Height:  |  Size: 106 KiB

View File

Before

Width:  |  Height:  |  Size: 16 KiB

After

Width:  |  Height:  |  Size: 16 KiB

View File

Before

Width:  |  Height:  |  Size: 2.1 KiB

After

Width:  |  Height:  |  Size: 2.1 KiB

View File

View File

View File

0
src/opnsense/scripts/OPNsense/CaptivePortal/lib/pf.py Normal file → Executable file
View File

View File