Skip to content

Commit 5d2e42e

Browse files
Merge pull request #409 from jaredhendrickson13/next_patch
2 parents 6aecb00 + dbd5708 commit 5d2e42e

4 files changed

Lines changed: 21 additions & 14 deletions

File tree

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
22
"require": {
3-
"firebase/php-jwt": "v6.8.*"
3+
"firebase/php-jwt": "v6.9.*"
44
}
55
}

composer.lock

Lines changed: 7 additions & 7 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pfSense-pkg-API/files/etc/inc/api/framework/APITools.inc

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,6 @@
1414
// limitations under the License.
1515

1616
namespace APITools;
17-
require_once("firebase/php-jwt/src/JWT.php");
18-
require_once("firebase/php-jwt/src/ExpiredException.php");
19-
require_once("firebase/php-jwt/src/SignatureInvalidException.php");
20-
require_once("firebase/php-jwt/src/BeforeValidException.php");
21-
require_once("firebase/php-jwt/src/Key.php");
2217
require_once("config.inc");
2318
require_once("util.inc");
2419
require_once("interfaces.inc");
@@ -34,6 +29,14 @@ require_once("openvpn.inc");
3429
require_once("certs.inc");
3530
require_once("pkg-utils.inc");
3631
require_once("firewall_virtual_ip.inc");
32+
require_once("firebase/php-jwt/src/JWT.php");
33+
require_once("firebase/php-jwt/src/JWK.php");
34+
require_once("firebase/php-jwt/src/Key.php");
35+
require_once("firebase/php-jwt/src/CachedKeySet.php");
36+
require_once("firebase/php-jwt/src/JWTExceptionWithPayloadInterface.php");
37+
require_once("firebase/php-jwt/src/ExpiredException.php");
38+
require_once("firebase/php-jwt/src/SignatureInvalidException.php");
39+
require_once("firebase/php-jwt/src/BeforeValidException.php");
3740
use Firebase\JWT\JWT;
3841
use Firebase\JWT\Key;
3942

pfSense-pkg-API/files/etc/inc/api/models/APISystemConfigUpdate.inc

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,12 @@ class APISystemConfigUpdate extends APIModel {
2727
}
2828

2929
public function action() {
30+
global $config;
31+
3032
# Simply replace the entire configuration with the data sent in the request
31-
$this->set_config("", $this->initial_data);
33+
# Note: this requires direct access to the $config since the new configuration access method introduced in
34+
# pfSense 2.7+ do not allow the entire configuration to be replaced.
35+
$config = $this->initial_data;
3236
$this->write_config();
3337
return APIResponse\get(0, $this->initial_data);
3438
}

0 commit comments

Comments
 (0)